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
  • 27 minutes ago
  • 12 years ago

Installs

  • Total 43K
  • Win 25K
  • Mac 11K
  • Linux 7K
May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 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
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).