zhouyl / phpfmt-tool
PHPFMT Command Tool
Installs: 246
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:Shell
Requires
- php: >=5.6.0
- ext-pcntl: *
- ext-sysvmsg: *
- ext-sysvsem: *
- ext-sysvshm: *
This package is auto-updated.
Last update: 2025-03-17 21:29:00 UTC
README
Installation
Via Composer
composer require zhouyl/phpfmt-tool
Configuration file lookup order
- $PWD/.phpfmt.ini (customize)
- $HOME/.phpfmt/.phpfmt.ini (global)
Customize the configuration file
cp vendor/zhouyl/phpfmt-tool/.phpfmt.ini .
Customize the default formatting directories (e.g. laravel 5.x)
echo "./app ./bootstrap ./database" > ./.phpfmtdirs
Usage
cd /workspace/myapplication
vendor/bin/phpfmt
Global Installation
wget --no-check-certificate https://github.com/zhouyl/phpfmt-tool/raw/master/phpfmt -O /usr/local/bin/phpfmt chmod +x /usr/local/bin/phpfmt cd /workspace/myaplication phpfmt .
License
The MIT License (MIT). Please see License File for more information.