Download the PHP package kaishiyoku/yaml-translation without Composer

On this page you can find all versions of the php package kaishiyoku/yaml-translation. 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 yaml-translation

Maintenance Packagist Packagist

Add Yaml file support for Laravel >=5.4 TranslationServiceProvider

This package uses Symfony/Yaml parser. Note: This is a fork from the orignal version of Devitek: https://github.com/Devitek/laravel-yaml-translation

Please note

Laravel =>5.4 only support for coming =>5.4.* releases. If you still want to use this package with an older Laravel version use an older release.

The last release with Laravel <= 5.3.* support is 5.0.1

Please note: As with version 5.5.1 this package is using Symfony Yaml Parser v3.* and therefore the YAML format has been changed a bit - you now have to escape lines with quotes (either double or single ones) when there are special keys present like a colon, otherwise you'll get an error like this: A colon cannot be used in an unquoted mapping value at line [...]. I have slightly changed the example below to demonstrate the changes.

Installing

Add to your composer.json by running

Add support in Laravel

Replace with in app/config/app.php.

How to use

Just use regular php files or use yml or yaml files instead. In order to use Yaml your localization files must end with *.yml.php, *.yaml.php, *.yml or *.yaml

Example

PHP:

Will be equivalent to :

YAML:

Please note: The Symfony Yaml parser expects indentation, using indentations will cause an exception.

If you have any issues feel free to open a ticket :)

Author

Twitter: @kaishiyoku
Website: www.andreas-wiedel.de


All versions of yaml-translation with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
illuminate/translation Version 5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*
symfony/yaml Version 3.*
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 kaishiyoku/yaml-translation contains the following files

Loading the files please wait ....