Download the PHP package asispts/ptscs without Composer
On this page you can find all versions of the php package asispts/ptscs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download asispts/ptscs
More information about asispts/ptscs
Files in asispts/ptscs
Package ptscs
Short Description PSR-12 coding standard with stricter rules
License MIT
Homepage https://github.com/asispts/ptscs
Informations about the package ptscs
ptscs
» PSR-12 coding standard with stricter rules «
ptscs is a PHP_CodeSniffer ruleset based on PSR-12 with stricter rules for consistency, readability, and best practices.
Installation
Usage
Create a phpcs.xml.dist file in your project root with the following configuration (customize as needed for your project structure):
Notable Rules
This coding standard uses PSR-12 with some changes and stricter requirements:
-
declare(strict_types=1)is required in all PHP files and must be on the same line as the opening tag: -
snake_caseis allowed in test method names: -
All classes must be declared as
finalorabstract: - Filenames must match class names.
See the full list in RULES.md.
Contributing
Contributions are welcome! Please open an issue to discuss major changes before submitting a pull request.
License
Released under MIT License.
All versions of ptscs with dependencies
dealerdirect/phpcodesniffer-composer-installer Version ^1.0
slevomat/coding-standard Version ^8.14
squizlabs/php_codesniffer Version ^3.7