PhpArrayConverter
🐘 A Sublime Text 3 / 4 package which converts PHP array syntax.
Details
Installs
- Total 3K
- Win 2K
- Mac 564
- Linux 533
Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
SublimePhpArrayConverter
A Sublime Text 3 / 4 package which converts PHP array syntax to brackets.
Dependencies
This package needs php
command to work.
Installation
Option 1: Install via “Package Control” (recommended)
- Ensure you have Package Control installed. See https://packagecontrol.io/installation .
- Install the package with Package Control. Open up the command palette (ctrl/cmd + shift + p), execute the following command:
Package Control: Install Package
, then enterPhpArrayConverter
.
Option 2: Download manually
- Download the zip file: https://github.com/gh640/SublimePhpArrayConverter/archive/master.zip
- 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.
- Open the command palette (ctrl/cmd + shift + p).
- 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 isfalse
and the auto conversion function is disabled. If you want to enable the auto conversion, set this totrue
in your setting file.path
is a value which is converted to the environment variable$PATH
whenphp
command to tokenize the php code is run. Change this value to specify whichphp
should be used in your environment.
Links
ComposerPackageInfo
: A Sublime Text 3 package which shows Composer packages information in a popup.
License
Licensed under the MIT license.