{"repo":"tighten/duster","free":true,"listed":false,"github":"https://github.com/tighten/duster","clone":"git clone https://github.com/tighten/duster.git","description":"Automatic configuration for Laravel apps to apply Tighten's standard linting & code standards.","language":"PHP","stars":600,"topics":["codequality","formatter","laravel","linter","php"],"license":"MIT","category":"dev-tools","readme_excerpt":"Duster Automatically apply Tighten's default code style for Laravel apps. Duster is built on top of the following tools: - TLint: lints Laravel and PHP code for issues not covered by other tools - using the default Tighten preset - PHP CodeSniffer: sniffs issues that can't be fixed automatically - using the Tighten preset which is mostly PSR1 with some Tighten-specific rules - PHP CS Fixer: adds custom rules not supported by Laravel Pint - CustomOrderedClassElementsFixer Tighten-specific order of class elements - Pint: Laravel's code style rules (with a few Tighten specific customizations) - using the default Laravel preset with some Tighten-specific rules You can view a list of the compiled rules and examples of what they do in the style guide. Installation You can install the package via composer: Optionally you can publish a GitHub Actions config: Or you can publish Husky Hooks: If you are using a containerized environment and do not have PHP installed locally, you can use the --env option to specify it: Supported environments are ddev , warden lando , and sail . Usage To lint everything at once: To fix everything at once: To dust only files that have uncommitted changes according to Git, you may use the --dirty option: To view all available commands: Usage with Sail Alternatively, Sail has a bin script that eases the execution of package binaries, so you do the same thing like this: Customizing If you need to include or exclude files or directories for each tool you can c","default_branch":null,"files":null,"tree":[],"storefront":"/r/tighten","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tighten/duster/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}