2017 © Pedro Peláez
 

library valitron-provider

A league/container v2 service provider for vlucas/valitron.

image

laasti/valitron-provider

A league/container v2 service provider for vlucas/valitron.

  • Thursday, April 21, 2016
  • by nebulousGirl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 219 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Laasti/valitron-provider

A league/container v2 service provider for vlucas/valitron., (*1)

Installation

composer require laasti/valitron-provider

Usage


$container = new League\Container\Container; $container->add('config', [ 'valitron' =>[ 'locale' => 'fr',//if not specified, attempts to use config.locale in the container, defaults to en, 'locales_dir' => __DIR__,//defaults, to Valitron's language files directory //Additional rules to add to Valitron, any php callbacks are accepted 'rules' => [ ['my_rule', 'my_callback', 'My message'] ] ] ]); $container->addServiceProvider('Laasti\ValitronProvider\ValitronProvider'); //The arguments are the same as Valitron's constructor $validator = $container->get('Valitron\Validator', [$data]);

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

See CHANGELOG.md for more information., (*2)

Credits

Author: Sonia Marquette (@nebulousGirl), (*3)

License

Released under the MIT License. See LICENSE.txt file., (*4)

The Versions

21/04 2016

dev-master

9999999-dev

A league/container v2 service provider for vlucas/valitron.

  Sources   Download

MIT

The Requires

 

21/04 2016

v2.0.1

2.0.1.0

A league/container v2 service provider for vlucas/valitron.

  Sources   Download

MIT

The Requires

 

21/02 2016

v2.0

2.0.0.0

A league/container v2 service provider for vlucas/valitron.

  Sources   Download

MIT

The Requires

 

02/11 2015

v1.1

1.1.0.0

A league/container service provider for vlucas/valitron.

  Sources   Download

MIT

The Requires

 

26/08 2015

v1.0

1.0.0.0

A league/container service provider for vlucas/valitron.

  Sources   Download

MIT

The Requires