Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kubawerlos/php-cs-fixer-config

Provides configuration for PHP CS Fixer
https://github.com/kubawerlos/php-cs-fixer-config

Last synced: 3 months ago
JSON representation

Provides configuration for PHP CS Fixer

Awesome Lists containing this project

README

        

# kubawerlos/php-cs-fixer-config

[![Latest stable version](https://img.shields.io/packagist/v/kubawerlos/php-cs-fixer-config.svg?label=current%20version)](https://packagist.org/packages/kubawerlos/php-cs-fixer-config)
[![PHP version](https://img.shields.io/packagist/php-v/kubawerlos/php-cs-fixer-config.svg)](https://php.net)
[![CI Status](https://github.com/kubawerlos/php-cs-fixer-config/workflows/CI/badge.svg?branch=main&event=push)](https://github.com/kubawerlos/php-cs-fixer-config/actions)
[![License](https://img.shields.io/github/license/kubawerlos/php-cs-fixer-config.svg)](LICENSE)

Provides a configuration for PHP CS Fixer.

## Installation
```bash
composer require --dev kubawerlos/php-cs-fixer-config
```

## Usage
Create `.php-cs-fixer.php` file and use `PhpCsFixerConfig\Factory`:
```php
setFinder(
PhpCsFixer\Finder::create()
->files()
->in(__DIR__ . '/src')
);

```
for library or use method `createForProject` for project.