nammero / sorterbystrategy
This library demonstrate usage of the Strategy pattern
Requires
- php: >=7.2
- symfony/yaml: ^4.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.13
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-05-12 20:40:00 UTC
README
This library allow to sort an array in ascending or descending order. Implemented by using the Strategy design pattern.
This template has basic configuration for PHPUnit and
PHP-CS-Fixer libraries, configured composer.json
with PSR-4 namespaces for source code and tests, .gitignore
with basic files and directories to exclude them from Git, changelog file
and README with cool badges :)
Installation
For creating new project based on this template just execute the following command
$ composer create-project nammero/sorterbystrategy
NOTE: You can add
--no-dev
right aftercreate-project
flag if you don't want to install dev dependencies to your project
Code style fixer
To fix the code style just run the following command
$ composer cs-fix
License
This project is released under the terms of the BSD-3-Clause license.
Copyright (c) 2019, Eugene Zadorozhnyy