Skip to content

Commit

Permalink
Merge pull request #6 from Lykegenes/dev
Browse files Browse the repository at this point in the history
Added Tests
  • Loading branch information
patricksamson committed Sep 14, 2015
2 parents fa1d4b7 + 5c9d7d6 commit b356728
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 1,877 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/vendor
/vendor
composer.lock
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Dependencies][ico-versioneye]][link-versioneye]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]

A Simple Laravel middleware to easily load and switch the user's locale.
Expand All @@ -18,12 +19,12 @@ composer require lykegenes/laravel-locale-switcher

Then, add this to your Service Providers :
``` php
Lykegenes\LaravelLocaleSwitcher\ServiceProvider::class,
Lykegenes\LocaleSwitcher\ServiceProvider::class,
```

Optionally, you can publish and edit the configuration file :
``` bash
php artisan vendor:publish --provider="Lykegenes\LaravelLocaleSwitcher\ServiceProvider" --tag=config
php artisan vendor:publish --provider="Lykegenes\LocaleSwitcher\ServiceProvider" --tag=config
```

## Usage
Expand All @@ -48,26 +49,29 @@ $url = url('/some/url').'?locale=en';
## Testing

``` bash
$ composer test
composer test
```

## Credits

- [Patrick Samson][link-author]
- [All Contributors][link-contributors]

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/Lykegenes/laravel-locale-switcher.svg?style=flat-square
[ico-license]: https://img.shields.io/packagist/l/Lykegenes/laravel-locale-switcher.svg?style=flat-square
[ico-version]: https://img.shields.io/packagist/v/lykegenes/laravel-locale-switcher.svg?style=flat-square
[ico-license]: https://img.shields.io/packagist/l/lykegenes/laravel-locale-switcher.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/Lykegenes/laravel-locale-switcher/master.svg?style=flat-square
[ico-versioneye]: https://img.shields.io/versioneye/d/php/lykegenes:laravel-locale-switcher.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/lykegenes/laravel-locale-switcher.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/lykegenes/laravel-locale-switcher.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/lykegenes/laravel-locale-switcher.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/lykegenes/laravel-locale-switcher
[link-travis]: https://travis-ci.org/Lykegenes/laravel-locale-switcher
[link-versioneye]: https://www.versioneye.com/php/lykegenes:laravel-locale-switcher
[link-scrutinizer]: https://scrutinizer-ci.com/g/lykegenes/laravel-locale-switcher/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/lykegenes/laravel-locale-switcher
[link-downloads]: https://packagist.org/packages/lykegenes/laravel-locale-switcher
[link-author]: https://github.com/Lykegenes
[link-author]: https://github.com/lykegenes
[link-contributors]: ../../contributors
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
},
"require-dev": {
"phpunit/phpunit" : "4.*",
"mockery/mockery": "0.9.*"
"mockery/mockery": "0.9.*"
},
"autoload": {
"psr-4": {
"Lykegenes\\LaravelLocaleSwitcher\\": "src/"
"Lykegenes\\LocaleSwitcher\\": "src/"
}
},
"scripts": {
Expand Down
Loading

0 comments on commit b356728

Please sign in to comment.