npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@phoenix-plugin-registry/mackenza.php-smarthints

v1.2.2

Published

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

Downloads

3

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.

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

screenshot

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

####Changelog

CHANGELOG

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