Download the PHP package menarasolutions/fluent-laravel without Composer

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

fluent-laravel

Build Status Latest Stable Version Total Downloads Code Climate Test Coverage License

Laravel package for Fluent translations (application localisation)

Localization flow of Laravel

Laravel offers two options for localization: key-based texts and plain JSON texts.

Key-based language files: {locale}/{group}.php (PHP array format)

Use:

Drawbacks: after adding a new key to the main locale, the same key has to be manually added to all other locales.

It's easy for locales to go out of sync. Some texts may be present in the language files but not be in use anywhere.

JSON files: {locale}.json (JSON format)

Use:

Drawbacks: if the same text needs different translations in different contexts, this doesn't work well.

It's hard to say how much of content is translated because there is no original text dictionary.

Localization flow of Fluent

Fluent offers you to store and manage your translations in the "cloud" which makes it trivial to outsource translations to translation market places or colleagues. Even if you translate everything yourself, Fluent interface will be far more convenient for this task (eg. you will see clearly current status, get hints from MTs, find unused texts, etc).

Installation

Use Composer to install this package:

Add our service provider to :

Create a config file (config/fluent.php):

Add your Fluent API key and application ID in this config file and you are ready to run!

Uploading original texts

You need to submit your original, untranslated texts to Fluent from time to time so that you or your translators can start working on translations. To do that run scan command:

This command will scan your src and resources/views folders and look for all invocations of __(), trans() and @lang(). Moreover, you will be prompted whether you want to upload your existing translations from resources/lang folder to Fluent.

Updating language files

Run the following command anytime during development or during your CI/CD pipeline:

This command will look for any new translations on Fluent and download them to resources/lang-fluent folder.

Note

This package will not alter any of your files. This package creates an extra folder in resources/ - lang-fluent, all new languagae files will be stored here.

You can move back to standard translation implementation at any time. Simply comment out our service provider in config/app.php.


All versions of fluent-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
laravel/framework Version 5.4.*|5.3.*
guzzlehttp/guzzle Version ^6.2
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 menarasolutions/fluent-laravel contains the following files

Loading the files please wait ....