Search code examples
phpimportsublimetextrequirephp-include

Is there any solution for Sublime Text to import php classes? Something similar to "Fast Import" on Netbeans?


As a php developer i need to instantiate classes all the time. By doing this i need to include or require these classes.

I am used to Netbeans IDE where i can easily use the "fast import" option (alt+shift+i). It allows me to use include or require to import classes.

I'm trying Sublime for now and it's been great until now, but the lack of this option makes me upset.

Is there any solution for Sublime Text to import php classes?


Solution

  • PHP companion package is what you need, you can import classes, insert namespaces, go to method definition with these package. Search for php companion in package control if you have that installed or visit the package repo for more details https://github.com/erichard/SublimePHPCompanion