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

Php​Array​Converter

by Goto Hayato ST3

A Sublime Text 3 package which converts PHP array syntax.

Details

Installs

  • Total 561
  • Win 368
  • OS X 103
  • Linux 90
Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9
Windows 4 1 2 1 1 1 1 4 0 3 4 2 2 0 2 1 0 2 4 2 5 4 1 2 0 0 0 2 0 2 0 1 3 1 2 2 5 3 1 1 2 1 2 2 3 2
OS X 0 1 0 0 1 0 0 0 0 0 2 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 2 0 0 1 0 0 1
Linux 3 0 0 2 0 1 3 2 0 0 0 1 3 0 0 0 1 0 1 0 2 0 0 1 0 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0

Readme

Source
raw.​githubusercontent.​com

SublimePhpArrayConverter

A Sublime Text 3 package which converts PHP array syntax to brackets.

ScreenShot

Dependencies

This package needs php command to work.

Installation

Option 1: Install via “Package Control” (recommended)

  1. Ensure you have Package Control installed. See https://packagecontrol.io/installation .
  2. Install the package with Package Control. Open up the command palette (ctrl/cmd + shift + p), execute the following command: Package Control: Install Package, then enter PhpArrayConverter.

Option 2: Download manually

  1. Download the zip file: https://github.com/gh640/SublimePhpArrayConverter/archive/master.zip
  2. Unzip the archive, rename the 'SublimePhpArrayConverter' folder to 'PhpArrayConverter' and move it into your Sublime Text 'Packages' directory.

Usage

Commands

You can run the conversion from the command palette.

  1. Open the command palette (ctrl/cmd + shift + p).
  2. Select PhpArrayConverter: Convert array.

If you are selecting a part of text when running the command, only arrays in it are targeted. If there's no text selected, all arrays in the active file will be converted.

Settings

The default settings are set as below.

{
  "auto_convert_on_save": false,
  "path": ""
}

These values can be overwritten through Preferences - Package settings - PhpArrayConverter - Settings - User.

  • auto_convert_on_save is a setting to turn on/off the auto conversion function. The default value is false and the auto conversion function is disabled. If you want to enable the auto conversion, set this to true in your setting file.
  • path is a value which is converted to the environment variable $PATH when php command to tokenize the php code is run. Change this value to specify which php should be used in your environment.

License

Licensed under the MIT license.