Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justijndepover/php-check
Check your code for possible syntax errors and bugs
https://github.com/justijndepover/php-check
php php-cs-fixer phpunit
Last synced: about 1 month ago
JSON representation
Check your code for possible syntax errors and bugs
- Host: GitHub
- URL: https://github.com/justijndepover/php-check
- Owner: justijndepover
- License: mit
- Created: 2020-09-04T08:54:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-28T08:57:38.000Z (over 3 years ago)
- Last Synced: 2024-11-16T17:46:32.821Z (3 months ago)
- Topics: php, php-cs-fixer, phpunit
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP Check
[![Latest Version on Packagist](https://img.shields.io/packagist/v/justijndepover/php-check.svg?style=flat-square)](https://packagist.org/packages/justijndepover/php-check)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Total Downloads](https://img.shields.io/packagist/dt/justijndepover/php-check.svg?style=flat-square)](https://packagist.org/packages/justijndepover/php-check)## Installation
You can install the package with composer
```sh
composer require justijndepover/php-check --dev
```## First usage
After installing the package, you should add a php-cs-fixer config file to your project.The script will automatically detect the presence of the file. If none exists, you will be prompted to install one.
```sh
./vendor/bin/php-check
```## Usage
The gist of the package is to have a global script that checks your code for possible syntax errors and bugs.
Run this script before you push your changes.This package provides:
- a global set of php-cs-fixer rules
- an option to check your code for possible syntax errors
- an option to fix your syntax errors
- an option to run phpunit
- an option to run all checksThe script is interactive, so you only have to run it.
```sh
./vendor/bin/php-check
```## Related repositories
- [timacdonald/php-style](https://github.com/timacdonald/php-style): inspiration for this package## Security
If you find any security related issues, please open an issue or contact me directly at [[email protected]]([email protected]).## Contribution
If you wish to make any changes or improvements to the package, feel free to make a pull request.## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.