diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b14cfa0 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "composer" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 diff --git a/README.md b/README.md index af98747..590349b 100644 --- a/README.md +++ b/README.md @@ -6,24 +6,14 @@ ## Just another collection of design patterns implementations in PHP -## Run Tests - -* Run `./composer.phar install` -* Now launch UTs running `./vendor/bin/phpunit test/` +## Requirements +- PHP 8.3+ -## Run PHP CS fixer +## Setup +- Run `./composer.phar install` -[https://github.com/FriendsOfPHP/PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) - -Install the tool: -``` -mkdir tools -mkdir tools/php-cs-fixer -./composer.phar require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer -``` +## Run Tests +- Run `./composer.phar test` -Run the tool: -``` -./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src -./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix test -``` +## Run Coding Standards +- Run `./composer.phar cs`