PHP Completions Kit
PHP completions for Sublime Text.
Details
Installs
- Total 98K
- Win 62K
- Mac 16K
- Linux 19K
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 | Jun 11 | Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 6 | 5 | 15 | 9 | 14 | 10 | 12 | 6 | 3 | 10 | 13 | 6 | 7 | 12 | 12 | 11 | 11 | 8 | 5 | 6 | 17 | 9 | 13 | 9 | 10 | 7 | 12 | 11 | 5 | 8 | 11 | 13 | 12 | 8 | 10 | 11 | 9 | 11 | 10 | 9 | 13 | 15 | 12 | 13 | 15 | 17 |
Mac | 1 | 1 | 2 | 0 | 2 | 2 | 1 | 1 | 0 | 0 | 3 | 3 | 1 | 2 | 1 | 0 | 2 | 2 | 4 | 2 | 3 | 0 | 1 | 1 | 2 | 1 | 1 | 2 | 1 | 1 | 1 | 2 | 4 | 0 | 0 | 1 | 1 | 7 | 0 | 2 | 3 | 2 | 0 | 0 | 2 | 1 |
Linux | 0 | 3 | 3 | 0 | 3 | 5 | 2 | 0 | 2 | 1 | 7 | 1 | 0 | 3 | 4 | 2 | 2 | 2 | 0 | 1 | 4 | 0 | 1 | 5 | 1 | 1 | 2 | 3 | 1 | 2 | 2 | 3 | 4 | 0 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 4 | 0 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
WHAT PHP COMPLETIONS KIT IS
Provides PHP completions for Sublime Text.
FEATURES
- PHP ~7
- Scoped to minimise auto-complete noise
- Language constructs
- Magic constants
- Magic methods
- Constants
- Functions
- Type hints: Classes, Interfaces, Exceptions, Instantiables, etc.
- Supported extensions:
bcmath
,bz2
,calendar
,Core
,ctype
,curl
,date
,dom
,ereg
,exif
,fileinfo
,filter
,ftp
,gd
,gettext
,hash
,iconv
,intl
,json
,libxml
,mbstring
,mhash
,mysql
,mysqli
,mysqlnd
,openssl
,pcntl
,pcre
,PDO
,pdo_mysql
,pdo_sqlite
,Phar
,posix
,readline
,Reflection
,session
,shmop
,SimpleXML
,soap
,sockets
,SPL
,sqlite3
,standard
,sysvmsg
,sysvsem
,sysvshm
,tidy
,tokenizer
,wddx
,xdebug
,xml
,xmlreader
,xmlrpc
,xmlwriter
,xsl
,Zend
,OPcache
,zip
,zlib
. - PSR compatible
INSTALLATION
Package Control installation
The preferred method of installation is Package Control.
Manual installation
Close Sublime Text, then download or clone this repository to a directory named PHP Completions Kit
in the Sublime Text Packages directory for your platform:
- Linux:
git clone https://github.com/gerardroche/sublime-phpck.git ~/.config/sublime-text-3/Packages/PHP Completions Kit
- OSX:
git clone https://github.com/gerardroche/sublime-phpck.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/PHP Completions Kit
- Windows:
git clone https://github.com/gerardroche/sublime-phpck.git %APPDATA%\Sublime/ Text/ 3/Packages/PHP Completions Kit
USAGE
By default, completions are triggered automatically when typing. If the setting auto_complete
is set to false then completions must be manually triggered.
Completions are context aware, meaning they are only provided in relevant contexts e.g. type hints will trigger at class Name extends |
, function(|
, /* @var | */
, exception trigger at try {} catch(|
, interfaces at class name implements |
, instantiables new |
, etc.
Relating Sublime Text key bindings:
OS X | Windows | Linux | Description |
---|---|---|---|
Ctrl+Space | Ctrl+Space | Alt+/ | Activate completions |
Relating Sublime Text settings:
{
// By default, auto complete will commit the current completion on enter.
// This setting can be used to make it complete on tab instead.
// Completing on tab is generally a superior option, as it removes
// ambiguity between committing the completion and inserting a newline.
"auto_complete_commit_on_tab": false,
// Controls if auto complete is shown when snippet fields are active.
// Only relevant if auto_complete_commit_on_tab is true.
"auto_complete_with_fields": false,
}
Set them globally: Menu > Preferences > Settings
:
{
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true
}
Set them per-project: Menu > Project > Edit Project
:
{
"settings": {
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true
}
}
CHANGELOG
See CHANGELOG.md.
LICENSE
Released under the BSD 3-Clause License.