Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eviweb/fuelphp-phpcs
PHP Code Sniffer standard for Fuel PHP
https://github.com/eviweb/fuelphp-phpcs
Last synced: about 1 month ago
JSON representation
PHP Code Sniffer standard for Fuel PHP
- Host: GitHub
- URL: https://github.com/eviweb/fuelphp-phpcs
- Owner: eviweb
- License: mit
- Created: 2012-10-23T21:30:32.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T11:57:54.000Z (almost 5 years ago)
- Last Synced: 2024-11-12T21:49:22.909Z (about 2 months ago)
- Language: PHP
- Size: 93.8 KB
- Stars: 27
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP_CodeSniffer Fuel PHP Standard
=================================
PHP Code Sniffer rules that cover a large part of the [Fuel PHP coding standards]
(http://docs.fuelphp.com/general/coding_standards.html "Fuel PHP Coding Standards").
[![Build Status](https://travis-ci.org/eviweb/fuelphp-phpcs.png?branch=master)](https://travis-ci.org/eviweb/fuelphp-phpcs)
How to install
--------------### The composer way (since v1.0.4)
run ``composer require --dev eviweb/fuelphp-phpcs:~1`` in your fuelphp project.
It will automatically install PHP CodeSniffer using composer.
### The old way
#### Install (Linux Only)
1. clone the project ``git clone https://github.com/eviweb/fuelphp-phpcs.git``
2. change directory to ./fuelphp-phpcs ``cd fuelphp-phpcs``
3. run installer with root privileges ``sudo ./install.sh``
#### Uninstall (Linux Only)
1. change directory to ./fuelphp-phpcs ``cd fuelphp-phpcs``
2. run uninstaller with root privileges ``sudo ./uninstall.sh``
How to use
----------### Using the fuelphpcs command (since v1.0.4)
Assuming FuelPHPCS was installed inside ``./fuel/vendor`` using composer and the ``bin-dir`` is ``./fuel/vendor/bin``.
Run ``./fuel/vendor/bin/fuelphpcs PROJECT_TO_SNIFF_DIRECTORY`` where
*PROJECT_TO_SNIFF_DIRECTORY* is your fuel php project directory.
### The old way
run ``phpcs --standard=FuelPHP PROJECT_TO_SNIFF_DIRECTORY`` where
*PROJECT_TO_SNIFF_DIRECTORY* is your fuel php project directory.
**BE AWARE not to use --tab-width phpcs option with another value than 0,
this would disable tabs recognition !**Requirements
------------
Please note that this package works with **PHP Code Sniffer version 2.9.x**.