PHP SmartHints

by Andrew MacKenzie for brackets >=1.0.0 
Provides code hints for PHP files including PHP keywords, built-in functions, constants and variables. Also provides hinting for variables in the current open PHP document. Note that this is a continuation of the former [PHP-SIG] Brackets-PHP-SmartHints and not a new extension or fork. The Brackets Registry flags it as a new extension if you change the name (makes sense).
version
1.2.2
modified
2015-07-08T00:19:30.652Z
first seen
2015-02-09T21:05:54.238Z
downloads
130825
 Versions
1.2.2
2015-07-08T00:19:30.652Z
92470
1.2.0
2015-05-21T18:50:39.247Z
12003
1.1.8
2015-05-21T18:01:00.566Z
181
1.1.7
2015-05-09T21:46:45.836Z
5553
1.1.6
2015-03-11T01:41:33.208Z
13443
1.1.5
2015-03-09T12:06:12.381Z
1562
1.1.4
2015-02-09T21:05:54.238Z
5613
 Readme
PHP-SmartHints ============== ** 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](http://brackets.io). The extension makes use of the core `CodeHintManager` module in Brackets. ![screenshot](php-smarthints_ss.png) 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](https://brackets-registry.aboutweb.com/) 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](php-smarthints_filter_dialog.png) ####Changelog [CHANGELOG](CHANGELOG.md) *note* - you should also check out the execellent [PHP Code Quality Tools](https://github.com/mikaeljorhult/brackets-php-code-quality-tools) extension from [Mikael Jorhult](https://github.com/mikaeljorhult) for PHP linting and code style checking.