Skip to content

zhouyl/phpfmt-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPFMT-tool

Installation

Via Composer

composer require zhouyl/phpfmt-tool

Configuration file lookup order

  1. $PWD/.phpfmt.ini (customize)
  2. $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.