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

https://github.com/ninjify/qa

:clap: Quality assurance for your PHP projects
https://github.com/ninjify/qa

codesniffer ninjify php quality-assurance

Last synced: 2 months ago
JSON representation

:clap: Quality assurance for your PHP projects

Awesome Lists containing this project

README

        

![](https://heatbadger.now.sh/github/readme/ninjify/qa/)














Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

## Usage

To install latest version of `ninjify/qa` use [Composer](https://getcomposer.com).

```
composer require ninjify/qa
```

## Versions

| State | Version | Branch | PHP |
|-------------|---------|----------|---------|
| dev | `^0.14` | `master` | `>=7.2` |
| stable | `^0.13` | `master` | `>=7.2` |

## Documentation

### CodeSniffer & CodeFixer

Default folders are: `src`, `app`, `tests`
Default extensions are: `php`, `phtml`, `phpt`
Default excluded folders are: `*/temp`, `*/tmp`

By default is used `ruleset.xml` in library/project root of your project. Otherwise, strict default one is used.

```sh
vendor/bin/codesniffer
vendor/bin/codesniffer
```

```sh
vendor/bin/codefixer
vendor/bin/codefixer
```

### Linter (PHP)

Default folders are: `src`, `app`, `tests`

```sh
vendor/bin/linter
vendor/bin/linter
```

### Executing

```
composer qa
composer qa
composer run qa
composer run-script qa
```

### Composer

```json
{
"scripts": {
"qa": [
"linter src tests",
"codesniffer src tests"
]
}
}
```

## Development

See [how to contribute](https://contributte.org) to this package. This package is currently maintained by these authors.



-----

Consider to [support](https://contributte.org/partners.html) **contributte** development team.
Also thank you for using this package.