Download the PHP package goodmagma/laravel-translations without Composer

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

Export Strings and Automatic translate via Google Translate Tools for Laravel

Latest Version Packagist Downloads Tests Status Badge PHPStan Status Badge Code Styles Check Badge

You can use __('Translate me') or @lang('Translate me') with translations in JSON files to translate strings. Laravel Translation Tools is composed by two commands:

Attribution

This project includes code from the following open-source projects:

Translatable String Exporter for Laravel

Installation

You can install the package via composer:

You can publish the config file with:

Click here to see the contents of the config file.

You should read through the config, which serves as additional documentation and make changes as needed.

Usage

Export translatable strings

Where <lang> is a language code or a comma-separated list of language codes. For example:

The command with the "es,bg,de" parameter passed will create es.json, bg.json, de.json files with translatable strings or update the existing files in the lang/ folder of your project.

Translate strings

Where <lang> is a language code or a comma-separated list of language codes. For example:

Persistent Strings

Some strings are not included in the export, because they are being dynamically generated. For example:

{{ __(sprintf('Dear customer, your order has been %s', $orderStatus)) }}

Where $orderStatus can be 'approved', 'paid', 'cancelled' and so on.

In this case, you can add the strings to the <lang>.json file manually. For example:

In order for those, manually added, strings not to get removed the next time you run the export command, you should add them to a json file named persistent-strings-<lang>.json. For example:

You may also use the persistent-strings-<lang>.json file to fix some translations when you use translate command. When a translation is defined here will not be automatic translated via Google Translate. This is useful for example when the automatic translation output for a particular string is not accurate.

Contributing

Contributions are what makes the open source community such an amazing place to learn, inspire and create. Any contributions you make are greatly appreciated.

If you want to make a PR:

  1. Fork the Project and checkout develop branch
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.


All versions of laravel-translations with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
illuminate/support Version ^8|^9|^10.0
illuminate/translation Version ^8|^9|^10.0
stichoza/google-translate-php Version ^5.1
symfony/finder Version ^5|^6
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 goodmagma/laravel-translations contains the following files

Loading the files please wait ....