• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

php-hyperclick

Hyperclick provider for PHP. Open file when classname is clicked
  • #hyperclick
  • #php
harikt
61,046
30
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

php-hyperclick package

Open the class files when you trigger ctrl + mouse left click.

How it works!

Inspired by

  • js-hyperclick
  • atom-autocomplete-php

This works with the help of some dependencies

  • Hyperclick

Optional dependency:

  • Composer a dependency manager for PHP

Making composer an optional dependency

Even though the class finding functionality is relied on composer, you can easily make the necessary change to make composer as optional dependency.

The base working of the package is it tries to find the file /vendor/autoload.php which returns an autoloader object. It assumes the object has a method findFile($class_name).

So if you are not using composer, keep a vendor/autoload.php file on the root of your project.

// vendor/autoload.php
 
$autoloader = new YourAutoloader();
 
// Make sure there is findFile method which can return the path to the file when class name is passed
 
return $autoloader;

Wishes

  • Learn coffee script and port
  • Improve all the ugly code

Known Limitations

  • Must have use statement in classes. Else clicking on things like new \Lib\Hello\World() will not be opened.
  • May not work on windows
  • Other unknown bugs

Thanks

Special Thanks to

  • Marco Pivetta
  • Shameer C
  • Wouter J
  • Mark Hahn
  • Lee Dohm
  • Dylan R. E. Moonfire
  • Joel Clermont

and to everyone who have helped knowingly/unknowingly to make this happen.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by