https://github.com/zhouyl/phpfmt-tool
PHPFMT 命令行工具
https://github.com/zhouyl/phpfmt-tool
php-tools phpfmt
Last synced: 3 months ago
JSON representation
PHPFMT 命令行工具
- Host: GitHub
- URL: https://github.com/zhouyl/phpfmt-tool
- Owner: zhouyl
- License: mit
- Created: 2017-06-02T09:00:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-07T10:59:19.000Z (over 8 years ago)
- Last Synced: 2025-01-11T13:41:18.441Z (about 1 year ago)
- Topics: php-tools, phpfmt
- Language: Shell
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHPFMT-tool
## Installation
### Via Composer
```bash
composer require zhouyl/phpfmt-tool
```
### Configuration file lookup order
1. $PWD/.phpfmt.ini (customize)
2. $HOME/.phpfmt/.phpfmt.ini (global)
### Customize the configuration file
```bash
cp vendor/zhouyl/phpfmt-tool/.phpfmt.ini .
```
### Customize the default formatting directories (e.g. laravel 5.x)
```bash
echo "./app ./bootstrap ./database" > ./.phpfmtdirs
```
### Usage
```bash
cd /workspace/myapplication
vendor/bin/phpfmt
```
## Global Installation
```bash
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](LICENSE) for more information.