ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Php​Beautifier

by SublimeText ST2

Pear Php_beautifier plugin for Sublime Text 2

Details

  • 2013.05.16.10.14.05
  • github.​com
  • github.​com
  • 11 years ago
  • 57 minutes ago
  • 12 years ago

Installs

  • Total 43K
  • Win 25K
  • Mac 11K
  • Linux 7K
Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

PHP code formatter for Sublime Text editor with Pear php_beautifier

Sublime Text 2

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 Archlinux

Install 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).