2017 © Pedro PelĆ”ez
 

library silex-translation-provider

A silex service provider that adds loader (translation) from yaml files

image

cekurte/silex-translation-provider

A silex service provider that adds loader (translation) from yaml files

  • Friday, April 29, 2016
  • by jpcercal
  • Repository
  • 1 Watchers
  • 0 Stars
  • 54 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

SilexTranslationProvider

Build Status Code Climate Coverage Status Latest Stable Version License SensioLabsInsight, (*1)

  • A simple silex service provider (with all methods covered by php unit tests) that adds the Yaml files to the Silex\Provider\TranslationServiceProvider to increase the power of your application, contribute with this project!

Installation

The package is available on Packagist. The source files is PSR-2 compatible. Autoloading is PSR-4 compatible., (*2)

composer require cekurte/silex-translation-provider

Documentation

To use this library you need register the Cekurte\Silex\Translation\Provider\TranslationServiceProvider., (*3)

<?php

use Cekurte\Silex\Translation\Provider\TranslationServiceProvider;

// ...

$app->register(new TranslationServiceProvider(), [
    'translation.directory' => realpath(__DIR__ . '/../your-translation-directory')
]);

// ...

And create in your-translation-directory/ the translation yaml files, note that the filename must be the locale name. Then, the following filenames are valid:, (*4)

  • en.yaml
  • en.yml
  • es.yaml
  • es.yml
  • fr.yaml
  • fr.yml
  • ...

If you liked of this library, give me a star =)., (*5)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make your changes
  4. Run the tests, adding new ones for your own code if necessary (vendor/bin/phpunit)
  5. Commit your changes (git commit -am 'Added some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

The Versions

29/04 2016

dev-master

9999999-dev

A silex service provider that adds loader (translation) from yaml files

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex translation register provider loader boot

29/04 2016

v0.0.6

0.0.6.0

A silex service provider that adds loader (translation) from yaml files

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex translation register provider loader boot

29/04 2016

dev-develop

dev-develop

A silex service provider that adds loader (translation) from yaml files

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex translation register provider loader boot

07/12 2015

v0.0.5

0.0.5.0

A silex service provider that adds loader (translation) from yaml files

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex translation register provider loader boot

30/09 2015

v0.0.4

0.0.4.0

A silex service provider that adds loader (translation) from yaml files

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex translation register provider loader boot

30/09 2015

v0.0.3

0.0.3.0

A silex service provider that adds loader (translation) from yaml files

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex translation register provider loader boot

30/09 2015

v0.0.2

0.0.2.0

A silex service provider that adds loader (translation) from yaml files

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex translation register provider loader boot

28/09 2015

v0.0.1

0.0.1.0

A silex service provider that adds loader (translation) from yaml files

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex translation register provider loader boot