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
  • 4 years ago
  • 9 minutes ago
  • 6 years ago

Installs

  • Total 43K
  • Win 24K
  • OS X 11K
  • Linux 7K
Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 0 1 0 1 1 4 1 0 1 2 0 0 1 1 3 2 0 0 1 1 2 1 0 2 1 1 0 2 0 1 1 2 0 0 4 1 0 2 0 2 1 0 0 2 0
OS X 0 4 0 0 1 0 0 3 0 0 0 0 0 0 1 0 1 1 2 1 0 0 1 1 0 2 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1
Linux 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0 1 0 0 1 1 0 1 0 0 0 0 0 0 0 1 1 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).