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

Php​Array​Converter

by Goto Hayato ST3

🐘 A Sublime Text 3 / 4 package which converts PHP array syntax.

Details

Installs

  • Total 4K
  • Win 2K
  • Mac 594
  • Linux 558
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 0 0 0 0 0 0 0 0 2 2 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 2 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1
Mac 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 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 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SublimePhpArrayConverter

A Sublime Text 3 / 4 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.

Links

  • ComposerPackageInfo: A Sublime Text 3 package which shows Composer packages information in a popup.

License

Licensed under the MIT license.