Download the PHP package luisprmat/laravel-lang-installer without Composer

On this page you can find all versions of the php package luisprmat/laravel-lang-installer. 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-lang-installer

Laravel Lang Installer (Archived)

Total Downloads Latest Stable Version License

This package is archived

The Laravel Lang package has had extreme changes incompatibles with this package. Use Laravel-lang/publisher instead.

This package helps us to quickly install the language files in a preferably fresh Laravel application.

Installation

Use the composer to install the package.

Usage

Add new language

After install a new laravel application with Laravel >= 5.5 the package autodiscover system will register the new command lang:add and you can call with

where <locale> refers to the short name of any of the supported languages

Warnings

  • Add lang action overwrites the language files so that you already had custom translations you could lose them.
  • When adding a language this package first consults the composer.json file to copy only the translations of the supported packages that are installed (Laravel Breeze, Laravel Cashier, Laravel Fortify and Laravel Jetstream are supported) resources/lang/<locale>.json. So it is good that you first install the supported packages that you will use and then run the command php artisan lang:add <locale>
  • If this command does not receive arguments, the Spanish language [es] will be installed by default.

This command can take a unique argument (or none) that will be the short name of the language according to ISO 15897.

This command also modifies the key locale in the config/app.php file to set the default language as passed through the parameter.

This command can also receive the following options:

Examples

or

Supported languages

af, ar, az, be, bg, bn, bs, ca, cs, cy, da, de, de_CH, el, es, et, eu, fa, fi, fil, fr, gl, gu, he, hi, hr, hu, hy, id, is, it, ja, ka, kk, km, kn, ko, lt, lv, mk, mn, mr, ms, nb, ne, nl, nn, oc, pl, ps, pt, pt_BR, ro, ru, sc, si, sk, sl, sq, sr_Cyrl, sr_Latn, sr_Latn_ME, sv, sw, tg, th, tk, tl, tr, ug, uk, ur, uz_Cyrl, uz_Latn, vi, zh_CN, zh_HK, zh_TW

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

This package does not modify the translations, only copies them from laravel-lang/lang. So if you want to suggest changes in the translations you can make a PR to the laravel-lang/lang package

License

MIT

Todo


All versions of laravel-lang-installer with dependencies

PHP Build Version
Package Version
Requires laravel-lang/lang Version ^10.6
laravel-lang/attributes Version ^1.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 luisprmat/laravel-lang-installer contains the following files

Loading the files please wait ....