https://github.com/tpay-com/php-coding-standards
https://github.com/tpay-com/php-coding-standards
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tpay-com/php-coding-standards
- Owner: tpay-com
- License: mit
- Created: 2023-08-10T09:14:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-08-13T12:44:12.000Z (11 months ago)
- Last Synced: 2025-10-27T08:08:12.085Z (8 months ago)
- Language: PHP
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Tpay](https://tpay.com)'s PHP coding standards
[](https://packagist.org/packages/tpay-com/coding-standards)
[](https://php.net)
[](LICENSE)
[](https://github.com/tpay-com/php-coding-standards/actions)
[](https://shepherd.dev/github/tpay-com/php-coding-standards)
## Installation
Run command:
```console
composer require --dev tpay-com/coding-standards
```
## Usage
Create `.php-cs-fixer.php` file and use `Tpay\CodingStandards\PhpCsFixerConfigFactory`:
```php
setFinder(
PhpCsFixer\Finder::create()
->ignoreDotFiles(false)
->in(__DIR__)
);
```
Instead of `createWithAllRules` you can use method `createWithNonRiskyRules` to use only non-risky fixers.
Use method `createWithLegacyRules` to use only set of fixers that is safe down to PHP 5.6.