Download the PHP package mgcodeur/laravel-translation-loader without Composer

On this page you can find all versions of the php package mgcodeur/laravel-translation-loader. 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 laravel-translation-loader

⚑ Laravel Translation Loader

Latest Version on Packagist Tests Code Style Downloads

Manage Laravel translations in a database with version-controlled migration files. This package streamlines multilingual app development, letting you create, update, and maintain translations without touching JSON or PHP files.

πŸš€ Quick Start

Get up and running in three steps.

1. Install the Package

Install the package to your Laravel project:

2. Publish Assets

Publish configuration and migration files:

This generates:

3. Run Migrations

Run the migrations:

πŸ› οΈ Creating Translation Migrations

Generate a migration to define translations:

πŸ‘‰ This creates a file in database/translations/:

Apply or Revert Migrations

Run all pending translation migrations:

Rollback the last migration:

🎯 Usage

Access translations as you would with standard Laravel language files:

πŸ“¦ Bonus Features

1. Check Migration Status

View the status of translation migrations:

Example Output:

2. Generate Language Files

πŸ‘‰ Export database translations to Laravel’s lang directory:

This creates files like:

πŸ’‘ Customize the output path in config/translation-loader.php.

βš™οΈ Configuration

Customize settings in config/translation-loader.php

✨ Extra Helpers

- addMany

Add multiple keys at once.

or

- update

Update existing translations.

Fallbacks

If a translation is missing, Laravel will fall back to the default language defined in your config/app.php.

❓ FAQ

Q: Can I use this with existing JSON/PHP translation files?
A: Yes! The package works alongside file-based translations.

Q: How does caching work?
A: Translations are cached. Automatically cleared when migrations are applied or rolled back.

πŸ“œ License

Licensed under the MIT License.

❀️ Support the Project

If this package saves you time:

For more help, check GitHub Issues or open a new issue.


All versions of laravel-translation-loader with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0
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 mgcodeur/laravel-translation-loader contains the following files

Loading the files please wait ....