Laravel Translatable: Provide text translations to use in model classes

Recommend this page to a friend!
  Info   View files Documentation   View files View files (17)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2021-07-08 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 18 All time: 10,366 This week: 200Up
Version License PHP version Categories
laravel-translatable 1.0MIT/X Consortium ...5Localization, PHP 5, Databases, Desig...
Description Author

This package can provide text translations to use in model classes.

It provides a trait that can be used by Laravel model classes to provide translations for texts stored in given variables of the model class that uses this trait.

The trait can retrieve, add, update and delete texts of variable values for different languages supported by the application that uses the model class that users the trait.

Innovation Award
PHP Programming Innovation award nominee
July 2021
Number 5
Many applications need to be prepared to work with users that understand different languages. Therefore the text that is presented to them must be translated to multiple languages.

This problem requires improving those model classes for applications that store texts dynamically in databases using model classes.

This way, applications can retrieve the correct text translations depending on the current user's preferred language.

This package provides a trait that can enhance the capabilities of model classes used in Laravel based applications.

The trait can access the translated text values stored in model objects depending on the current user language.

Manuel Lemos
Picture of Moamen Eltouny
  Performance   Level  
Innovation award
Innovation award
Nominee: 17x

 

Details

<p align="center"><a href="https://pharaonic.io" target="_blank"><img src="https://raw.githubusercontent.com/Pharaonic/logos/main/translatable.jpg"></a></p>

<p align="center"> <a href="https://php.net" target="_blank"><img src="https://img.shields.io/static/v1?label=PHP&message=%3E=7.2&color=blue&style=flat-square" alt="PHP Version : >= 7.2"></a> <a href="https://laravel.com" target="_blank"><img src="https://img.shields.io/static/v1?label=Laravel&message=%3E=6.0&color=F05340&style=flat-square" alt="Laravel Version : >= 6.0"></a> <img src="https://img.shields.io/static/v1?label=License&message=MIT&color=brightgreen&style=flat-square" alt="License"> <a href="https://liberapay.com/Pharaonic" target="_blank"><img src="https://img.shields.io/liberapay/receives/Pharaonic?color=gold&label=Support&style=flat-square" alt="Support"></a> <br> <a href="https://packagist.org/packages/Pharaonic/laravel-translatable" target="_blank"><img src="https://img.shields.io/static/v1?label=Packagist&message=pharaonic/laravel-translatable&color=blue&logo=packagist&logoColor=white" alt="Source"></a> <a href="https://packagist.org/packages/pharaonic/laravel-translatable" target="_blank"><img src="https://poser.pugx.org/pharaonic/laravel-translatable/v" alt="Packagist Version"></a> <a href="https://packagist.org/packages/pharaonic/laravel-translatable" target="_blank"><img src="https://poser.pugx.org/pharaonic/laravel-translatable/downloads" alt="Packagist Downloads"></a> </p>

<h3 align="center">Simplest Translatable for Laravel Eloquent/Model.</h3> <br>

Documentation

You can find the detailed documentation here in Laravel Translatable Documentation.

Contributing

Thank you for considering contributing to this package! Be one of Pharaonic team.

Pharaonic Sponsors

We would like to extend our thanks to the following sponsors for funding Pharaonic packages development. If you are interested in becoming a sponsor, please visit the Pharaonic Liberapay page or Patreon page.

License

This package is an open-sourced software licensed under the MIT license.

  Files folder image Files  
File Role Description
Files folder image.github (1 directory)
Files folder imagesrc (3 files, 2 directories)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:18
This week:0
All time:10,366
This week:200Up

For more information send a message to info at phpclasses dot org.