Download the PHP package joeri-abbo/laravel-easy-translations without Composer

On this page you can find all versions of the php package joeri-abbo/laravel-easy-translations. 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-easy-translations

Laravel Easy Translations

Test Test Test Test Test

Getting Started

Prerequisites

After installing the package in to your laravel project run the command below to add the config and create the language folder.

You can custom the dir for the language file storage by editing the config setting storage_path to your wanted path. After changing this setting the dir automatically will be generated when a transulation is called. You can also force it by running

Usage

You can easily use the translate function in your application. The first parameter is required the second one is your language pack. Default it uses your default set in the config. If you do not change this it will be english.

If you want to translate to your custom language pack it is as easy as adding the second parameter for the language pack like below

To change the default pack on your web pack it is as easy to change the value inside the Language helper class like below. The translated sting will be in the set language pack. If it is not found it will return the given string.

You can translate the json file by your editor but there is also a view for this. To access this view your application env needs to be value APP_ENV needs to be local. The url is base_url/laravel-easy-translations this view shows the found languages and the option to edit these translations.

You can also automatic translate your application by using the command below. It wil use Google translate to translate your given base language pack

Releases

version 1.0.0


All versions of laravel-easy-translations with dependencies

PHP Build Version
Package Version
Requires ergebnis/composer-normalize Version ^2.28
stichoza/google-translate-php Version ^4.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 joeri-abbo/laravel-easy-translations contains the following files

Loading the files please wait ....