PHP Completions Kit
PHP completions for Sublime Text.
Details
Installs
- Total 100K
- Win 63K
- Mac 17K
- Linux 20K
Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 10 | 8 | 2 | 5 | 7 | 8 | 8 | 10 | 14 | 9 | 9 | 9 | 12 | 9 | 16 | 9 | 8 | 10 | 11 | 11 | 18 | 8 | 10 | 4 | 5 | 7 | 5 | 5 | 9 | 4 | 3 | 1 | 6 | 7 | 7 | 8 | 6 | 6 | 2 | 10 | 8 | 13 | 10 | 4 | 4 | 6 |
Mac | 2 | 3 | 1 | 2 | 3 | 1 | 3 | 1 | 1 | 1 | 0 | 1 | 2 | 1 | 5 | 1 | 1 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 3 | 1 | 1 | 1 | 3 | 0 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 1 | 3 | 2 | 2 | 1 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 1 | 1 | 3 | 4 | 3 | 5 | 1 | 0 | 1 | 3 | 3 | 2 | 0 | 0 | 1 | 0 | 3 | 3 | 5 | 8 | 2 | 1 | 1 | 3 | 0 | 3 | 0 | 0 | 0 | 3 | 4 | 5 | 6 | 3 | 0 | 1 | 1 | 0 | 1 | 3 | 0 | 0 | 1 |
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.