Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


** Note on status for this extension ** - At the end of 2014 I was making significant progress towards phase 2 functionality outlined below. I still intend to complete this work and publish the most kick-ass PHP code hinting extension for Brackets, but it's taking more time than I had hoped due to real life and work (the kind of work that pays the bills) getting in the way. Stay tuned, this will be a very good release once I get the time to finish it ;)

This extension is the first project I started to make PHP a first-class citizen in Brackets. It is intended to be an intelligent code hinting tool to make PHP developers' lives easier when coding PHP in the Brackets code editor.

The extension makes use of the core CodeHintManager module in Brackets.


This extension is being rolled out in phases that incrementally add useful features on the base of simple code hints on PHP code.

  • Phase 1: base release offering hinting of local variables (i.e. those declared in the current document such as $myVar), predefined variables from PHP (e.g. $_POST), predefined constants (e.g. __FILE__), predefined functions (e.g. json_encode), and PHP keywords (e.g. foreach). This release has some known issues, but is generally useful and is the most feature complete PHP code hint extension in the Brackets Registry even in this initial release.

  • Phase 2: will add further functionality to the extension. It is planned to be able to pick up class hinting from classes in scope from an include/require or use statement. The specific feature set has not been determined for this release yet, but it should be the start of putting the smart in SmartHints ;)

  • Phase 3: will try and work on parameter hinting so that you get some guidance on entering parameters with functions. This functionality is not currently covered by a core Brackets module but the core dev team has built parameter hinting in to the JS hint manager so there is some prior art to work with for this feature.

** Please note that this extension will make NO ATTEMPT to support PHP prior to version 5.3 and any issues/PRs that are specific to versions prior to 5.3 will be closed without review **

Filter PHP Functions by Module

As of release 1.1.0, you can add project-level filtering of which PHP modules are included in the hint list for PHP files. This helps reduce the size of the lists and therefore allow the suggestions to be more suited to your specific project.

The filter can be set in one of two ways:

  • using the new Project Settings Dialog UI (see below for a screenshot). This dialog is accessed using the lightbulb icon on the toolbar.
  • editing the .brackets.json file manually. This file must be in the root of your PHP project. The key you edit is: "php-sig.php-smarthints.filteredFunctionList" and it takes an array of module shortnames as modules you do want included. The module short names can be found in the phpdata/php-function-groups.json config file.

Note if there is no setting in the project-level .brackets.json file, the default is that *all modules are included in hinting.

Filter Dialog



note - you should also check out the execellent PHP Code Quality Tools extension from Mikael Jorhult for PHP linting and code style checking.


Trying to build a robust code hint/intelligence extension for PHP code in the Brackets editor







No packages published