Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barbuk/sublime-php-beautifier
Pear Php_beautifier plugin for Sublime Text 2
https://github.com/barbuk/sublime-php-beautifier
Last synced: about 1 month ago
JSON representation
Pear Php_beautifier plugin for Sublime Text 2
- Host: GitHub
- URL: https://github.com/barbuk/sublime-php-beautifier
- Owner: BarbUk
- Created: 2011-10-26T07:45:04.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-20T09:28:52.000Z (almost 13 years ago)
- Last Synced: 2023-08-10T21:18:02.631Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 93.8 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP code formatter for Sublime Text editor with Pear php_beautifier
#### [Sublime Text 2](http://www.sublimetext.com/2)
#### [Php_beautifier](http://pear.php.net/package/PHP_Beautifier)## About
This is a Sublime Text 2 plugin allowing you to format your PHP code.
It uses php beautifier.## Installation
Install php-pear and php-cli with your package manager :
* php-pear & php5-cli with Debian
* php-pear & php with ArchlinuxInstall php beautifier from pear channel :
`sudo pear install --alldeps channel://pear.php.net/php_beautifier-0.1.15`Clone or download the files and copy them to your `Packages` folder. You can access it via Preferences -> Browse Packages in sublime text.
## Usage
ctrl + shift + P and type `Format: PHP`, or you can use the ctrl + alt + f keybinding.## Customize
You can define some options in the script `php_beautifier.py`.
Default options are : `PHP_OPTIONS = "-s4 -l 'ArrayNested()' "` (indent with 4 spaces and nested arrays).