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

PHP Completions Kit

by gerardroche ALL

PHP completions for Sublime Text.

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

PHP Completions Kit

PHP completions for Sublime Text.

✨ Features

  • 🔥 PHP >= 8.2
  • ⚡ Scoped to minimise auto-complete noise.
  • 🚀 Language constructs, methods, constants, functions, type hints including classes, interfaces, and exceptions.
  • 📦 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

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

OS X Windows Linux Description
Ctrl+Space Ctrl+Space Alt+/ Activate completions

Settings

Setting Default Description
auto_complete true Enable auto complete to be triggered automatically when typing.
auto_complete_commit_on_tab false 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_with_fields false Controls if auto complete is shown when snippet fields are active. Only relevant if auto_complete_commit_on_tab is true.

Menu → Preferences → Settings:

{
    "auto_complete_commit_on_tab": true,
    "auto_complete_with_fields": true
}

Changelog

See CHANGELOG.md.

License

Released under the GPL-3.0-or-later License.