Download the PHP package keypoint-solutions/laravel-localization-helpers without Composer

On this page you can find all versions of the php package keypoint-solutions/laravel-localization-helpers. 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-localization-helpers

Laravel Localization Helpers

Total Downloads

This branch is the current dev branch

LLH is a set of artisan commands to manage translations in your Laravel project. Key features :

Table of contents

  1. Installation
  2. Configuration
  3. Usage
  4. Support
  5. Contribute

1. Installation

Laravel Lumen Package
8.0.x 8.0.x main
9.0.x 9.0.x main

In Laravel, you can add the facade in the Aliases if you need to manage translations in your code :

2. Configuration

To configure your fresh installed package, please create a configuration file by executing :

Then you can modify the configuration in file :

Add new folders to search for, add your own lang methods or functions, ...

Backup files

You should not include backup lang files in GIT or other versioning systems.

In your laravel folder, add this in .gitignore file :

3. Usage

3.1 Command localization:missing

This command parses all your code and generates translations according to lang files in all lang/XXX/ directories.

Use php artisan help localization:missing for more informations about options.

Examples

Generate all lang files
Generate all lang files without prompt
Generate all lang files without backuping old files
Generate all lang files with automatic translations
Generate all lang files without keeping obsolete lemmas
Generate all lang files without any comment for new found lemmas
Generate all lang files without header comment
Generate all lang files and set new lemma values

3 commands below produce the same output:

You can customize the default generated values for unknown lemmas.

The following command let new values empty:

The following command prefixes all lemma values with "Please translate this : "

The following command set all lemma values to null to provide fallback translations to all missing values.

The following command set all lemma values to "Please translate this !"

Silent option for shell integration
Simulate all operations (do not write anything) with a dry run
Open all must-edit files at the end of the process

You can edit the editor path in your configuration file. By default, editor is Sublime Text on Mac OS X :

For PHPStorm on Mac OS X:

3.2 Command localization:find

This command will search in all your code for the argument as a lemma.

Use php artisan help localization:find for more informations about options.

Examples

Find regular lemma
Find regular lemma with verbose
Find regular lemma with short path displayed
Find lemma with a regular expression

PCRE functions are used

3.3 Command localization:clear

This command will remove all backup lang files.

Use php artisan help localization:clear for more informations about options.

Examples

Remove all backups
Remove backups older than 7 days

4. Support

Use the github issue tool to open an issue or ask for something.

5. Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

All versions of laravel-localization-helpers with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^8.0|^9.0|^10.0|^11.0
friendsofphp/php-cs-fixer Version ^3.0
illuminate/console Version ^v8.0|^9.0|^10.0|^11.0
illuminate/config Version ^8.0|^9.0|^10.0|^11.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 keypoint-solutions/laravel-localization-helpers contains the following files

Loading the files please wait ....