Download the PHP package coderscantina/laravel-translations without Composer
On this page you can find all versions of the php package coderscantina/laravel-translations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coderscantina/laravel-translations
More information about coderscantina/laravel-translations
Files in coderscantina/laravel-translations
Package laravel-translations
Short Description Database driven translation for your Laravel application.
License MIT
Informations about the package laravel-translations
Laravel Database Translation from Coder's Cantina
A powerful, database-driven translation system for Laravel applications. Store, manage, and retrieve translations directly from your database, with full integration with Laravel's built-in translation system.
Features
- Database Storage: Store all translations in your database for easy management
- Laravel Integration: Seamlessly integrates with Laravel's built-in translation system
- Placeholder Support: Full support for placeholders in translations
- Fallback Support: Cascading language fallbacks
- Import/Export: Import and export translations from/to JSON files
- Command Line Tools: Comprehensive set of Artisan commands to manage translations
Getting started
- Install this package
Installation
Requirements
- PHP 8.0 or higher
- Laravel 8.0 or higher
Via Composer
The package will automatically register its service provider.
Publish Configuration
Optionally publish the configuration file:
Run Migrations
Create the translations table:
Usage
Adding Translations
Via Artisan Command
Via Code
Retrieving Translations
Use Laravel's built-in methods for retrieving translations, such as Lang::get()
, __
and trans
helpers.
Organizing Translations
We strongly recommend using dot notation to logically group translations:
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
All versions of laravel-translations with dependencies
illuminate/database Version ^7.0||^8.0||^9.0||^10.0||^11.0||^12.0
illuminate/support Version ^7.0||^8.0||^9.0||^10.0||^11.0||^12.0