Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

atom.io Laravel autoprediction woes

I'm trying to get PHP to autocomplete for my Laravel project - I've been trying lots of different packages, but none seem to work...

Here's a screenshot from a PHP class:

enter image description here

I need $table-> to autocomplete and suggest all the functions available to it! (functions such as ->string(...), ->text(...), ->timestamps(), etc.)

Can anyone suggest anything?

I have the following php-related packages installed:

  • autocomplete-php (this seems to only work for standard PHP functions?)
  • php-twig (TWIG related only...)
  • language-php (basic PHP syntax...)

But I need something more. I need to be able to identify all the classes in my Laravel project and auto-suggest their functions!

like image 793
Eamorr Avatar asked Jun 01 '15 11:06

Eamorr


1 Answers

You can use CTags to index the definitions. Have a look at this Atom package:

Atom Ctags

Don't worry that the animated demo there is presented for C, it should work with PHP just as well.

like image 73
Bogdan Avatar answered Oct 29 '22 21:10

Bogdan