Delete Reply

I have seen something like PHPStorm which suggests related commands (i.e. you type in a class name/instance name and it suggests what methods are available even if the class is located else where (and is brought in using namespaces/use keywords at the top of the page)

I know that Laracasts recent videos seem to be using it but you have to pay for it.. I would love for a plugin for sublime that can do exactly that..

Delete Reply

If you want the most benefit there is currently only PHPStorm as an option. Nothing else can do real code analysis for safe refactorings. Everything else is a massive step down. It's going to take you some time configuring and learning. But, everything else out there is just a distraction. Take a little time every day to watch a new video on it and you'll be fine.

Delete Reply

Also, when using Facades PHPStorm (and other IDEs) won't suggest completions, refactor, or do a lot of other cool things to help. There is an IDE Helper that generates a file to help IDEs do it. In my opinion though using it should be a smell. The only place I would use facades (other than quick testing) is views.

If you do use the Laravel IDE Helper, just remember that in time you should research and implement ways of injecting the classes directly where they are being used in classes (called Dependency Injection) so PHPStorm (and other helpers) can auto-complete. Along with doing DI you will get better code analysis as well.

Delete Reply

Which tools of PHP can we use with laravel, CodeIgniter, and other frameworks?, then to create a master application with a simple line of coding these top 10 PHP development tools has been used in 2017 to become a master developer.