Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jadu/php-style

phpcs configuration for Jadu code
https://github.com/jadu/php-style

Last synced: 5 days ago
JSON representation

phpcs configuration for Jadu code

Awesome Lists containing this project

README

        

# Jadu PHP Style

Require the php-style dev dependency:

```
composer require --dev jadu/php-style
```

In your project's `.php-cs-fixer.dist.php` config file use the `Config` class as follows:

```
in(__DIR__ . '/src');
$finder->in(__DIR__ . '/tests/unit');

$config = new Config();
$config->setFinder($finder);

return $config;

```

Now add phpcs to your project's build tasks.

Example CI command:
```
vendor/bin/php-cs-fixer --dry-run -v fix
```