Skip to content

Commit

Permalink
Merge pull request #15 from strangebuzz/feat/use-composer-bin-plugin-…
Browse files Browse the repository at this point in the history
…for-php-cs-fixer

feat: user composer bin plugin to use php-cs-fixer
  • Loading branch information
COil authored Jan 28, 2024
2 parents 8396b54 + 603ab51 commit 10e0d0f
Show file tree
Hide file tree
Showing 7 changed files with 1,948 additions and 323 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
###> bamarni/composer-bin-plugin ###
/vendor-bin/**/vendor/
###< bamarni/composer-bin-plugin ###

###> symfony/framework-bundle ###
/.env.local
/.env.local.php
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ Enjoy!
* Using the ADR pattern in an action controller ([source](https://github.com/strangebuzz/MicroSymfony/blob/main/src/Controller/SlugifyAcfion.php)) ([doc](https://symfony.com/doc/current/controller/service.html#invokable-controllers))
* The [composer.json](https://github.com/strangebuzz/MicroSymfony/blob/main/composer.json)
file is normalized with [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize)
* Use of the [composer bin plugin](https://github.com/bamarni/composer-bin-plugin)
to install and run `php-cs-fixer`.


## What it doesn't ship? ❌
Expand Down
14 changes: 10 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
"twig/twig": "^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.41",
"bamarni/composer-bin-plugin": "^1.8",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-symfony": "^1.3",
"phpunit/phpunit": "^10.0",
"roave/security-advisories": "dev-latest",
"symfony/browser-kit": "~7.0.0",
"phpunit/phpunit": "^10.0",
"symfony/css-selector": "~7.0.0",
"symfony/requirements-checker": "^2.0",
"symfony/stopwatch": "~7.0.0",
Expand Down Expand Up @@ -82,19 +82,25 @@
"php-http/discovery": true,
"phpstan/extension-installer": true,
"symfony/flex": true,
"symfony/runtime": true
"symfony/runtime": true,
"bamarni/composer-bin-plugin": true
},
"sort-packages": true
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "7.0.*"
},
"bamarni-bin": {
"bin-links": true,
"forward-command": true
}
},
"scripts": {
"post-install-cmd": [
"@auto-scripts"
"@auto-scripts",
"@composer bin php-cs-fixer install --ansi"
],
"post-update-cmd": [
"@auto-scripts"
Expand Down
Loading

0 comments on commit 10e0d0f

Please sign in to comment.