Download the PHP package maggomann/filament-model-translator without Composer

On this page you can find all versions of the php package maggomann/filament-model-translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-model-translator

GitHub Tests Action Status GitHub license Total Downloads

Filament model translator package for filament v3.x

This package is tailored for Filament Admin Panel v3.x.

Make sure you have installed the admin panel before you continue with the installation. You can check the documentation here

The package translates the Eloquent models using a currently specified translation file. The Eloquent models are used internally in filament's Resources and RelationManagers for translation. This package provides traits for the Resources and RelationManagers to translate them automatically.

Supported Versions

PHP Versions Laravel Versions
8.3, 8.2, 8.1 10.*
8.3, 8.2 11.*

Installation

You can install the package via composer:

Add the plugin to your desired Filament panel:

How is it used?

The language files

The translations are currently called from the filament-model.php translation file, which must be located in the following directory tree:

The filament-model.php file within the package serves as a structured language file for translations. It enables defining translations for various entities such as models, their attributes, and navigation elements.

This file offers a structured way to organize language translations for various aspects of your application:

The trait HasTranslateableResources for the resource classes

The trait HasTranslateableResources internally translates the method calls automatically:

Example:

Or:

The trait HasTranslateableRelationManager for the relation classes

The trait HasTranslateableRelationManager internally translates the method calls automatically:

You can use the trait HasTranslateableRelationManager in the following ways:

Example:

Or:

The trait HasTranslateableModel for the eloquent classes

The following method calls are available with the trait HasTranslateableModel:

You can use the trait HasTranslateableModel in the following ways:

Example:

Or:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Disclaimer

Please note that these packages for Filament are not officially operated by Filament and do not provide any support or warranty from the Filament team. The use of these packages is at your own risk.

This project represents unofficial extensions for Filament and is maintained by an independent community of developers. We strive to maintain compatibility with the current versions of Filament, but we cannot guarantee that the packages will function flawlessly or be compatible with future versions of Filament.

We recommend users to create backups of their projects and thoroughly test them before using these packages. If you have any questions, issues, or suggestions, we are available to assist you. However, please note that we cannot provide official support for these packages.

We would like to emphasize that Filament is a separate developer community independent of this project. For more information about Filament, please refer to the official Filament website.

Please read the license terms to learn more about the conditions for using these packages.


All versions of filament-model-translator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
spatie/once Version ^3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package maggomann/filament-model-translator contains the following files

Loading the files please wait ....