5 best code editors and IDE for laravel

1 - sublime text

One of the most popular text editors used for coding is Sublime Text. Sublime has many features that make coding fun, and with plugins, we can add in Laravel-specific features to help with our app.

Sublime Text is a popular code editor that is very extensible and makes writing code effortless. An evaluation version can be downloaded from http://www.sublimetext.com

We also need to have the Package Control package installed and enabled in Sublime, and that can be found at http://wbond.net/sublime_packages/package_control/installation. or packagecontrol.io

How to setup for laravel


  • Choose Install Package:


  • Search for laravel to see the listing. Choose Laravel Snippets and let it install. After it’s complete, choose Laravel-Blade and install it.

The Laravel snippets in Sublime Text 2 greatly simplify writing common code, and it includes pretty much everything we’ll need for application development. For example, when creating a route, simply start typing Route and a list will pop up allowing us to choose which route we want, which then automatically completes the rest of the code we need.


Installing the Laravel-Blade package is helpful if we use the Blade template system that comes with Laravel. It recognizes Blade code in the files and will automatically highlight the syntax.

5 best code editors for laravel

Click to Tweet

2 - Atom

Developed by GitHub, the highly customizable environment and ease of installation of new packages has turned Atom into the IDE of choice for a lot of people. It is worth mentioning that the code examples provided in this dunebook were actually coded using Atom only.

Atom has Very nice git integration, it has tons of plugins, it is open source and resource usage is medium compared to php storm

atom makes laravel coding easier just by installing a plugin . you can find and download plugin from here https://atom.io/packages/laravel

3 - Php Storm

PhpStorm is perfect for working with Symfony, Drupal, WordPress, Zend Framework, Laravel, Magento, Joomla!, CakePHP, Yii, and other frameworks.

The editor actually 'gets' your code and deeply understands its structure, supporting all PHP language features for modern and legacy projects. It provides the best code completion, refactorings, on-the-fly error prevention, and more.

All the features of WebStorm are included into PhpStorm, and full-fledged support for PHP and Databases/SQL support are added on top.

How to setup for laravel

1. Ensure Composer is initialized

One thing we want to make sure beforehand is that Composer is initialized and configured in PhpStorm. After opening a Laravel project, select the root node in the project tool window and use the Composer | Init composer... context menu. PhpStorm can download composer.phar if needed.

2. Install the Laravel IDE Helper

Once Composer is available for use in our project, we can install the Laravel IDE helper into our project. We can use the Composer | Add dependency... context menu and search for barryvdh/laravel-ide-helper. Click Install to download the package and add it to our project.

Once installed, we have to add the Laravel IDE helper as a ServiceProvider into our application. In the app/config/app.php file, add 'BarryvdhLaravelIdeHelperIdeHelperServiceProvider' under the providers element:

<?phpreturn array(     // ...     'providers' => array(         // ...         'BarryvdhLaravelIdeHelperIdeHelperServiceProvider', // Laravel IDE helper     ),     // ...);

3. Generate the PHPDoc Helper File using Artisan

After installing the Laravel IDE Helper, we can use artisan to generate a PHPDoc helper file that PhpStorm and the Laravel plugin will use to provide code completion and navigation.

Recommended :  Using aggregates functions in laravel

The easiest way to do this is by enabling command line tool support for artisan. From the settings, add a new command line tool under Tools | Command Line Tool Support. The tool type is a Tool based on Symfony Console. Next, provide the path to artisan:

Once saved, we can use artisan from within the IDE. The Tools | Run Command... menu (Ctrl+Shift+X or CMD+Shift+X on Mac OS X) provides completion for all artisan commands that are available. Run the artisan ide-helper:generate command to generate the required PHPDoc information.

The Laravel IDE Helper may have to be run after changing or adding services, controllers, models and views. The Laravel IDE Helper GitHub page provides additional tips on running it, for example, after performing an install or update of Composer dependencies.

4. Install and enable the Laravel Plugin

Under Settings (Preferences) | Plugins, click the Browse repositories... button and search for Laravel. Next, we can use the Install plugin button or the context menu to proceed with plugin installation.

Restart the IDE to complete the installation of the plugins. Next, we will have to enable the Laravel Plugin in our project. We can do this from Settings (Preferences) | Other Settings | Laravel Plugin | Enable Plugin for this Project. We'll have to restart the IDE once more to load the plugin's additional features for Laravel.

4 - Netbeans

The NetBeans PHP editor provides code templates and code generation tools, such as "getter and setter" generation, refactoring, such as "instant rename", parameter tooltips, hints, and quick fixes, and smart code completion.

Benefit from syntactic and semantic code highlighting, pop-up documentation, code formating and folding, marking of occurrences and exit points, clever try/catch code completion, smart method parameter pre-filling, and rectangular selection.

go to following Repository


Here you can access to entire repo: https://github.com/barryvdh/laravel-ide-helper

all you need Is just Put it within your app folder. and you are ready to code

5 best code editors for laravel

Click to Tweet

5 - Codelobster

Codelobster PHP Edition streamlines and simplifies the PHP development process. You don't need to keep in mind the names of functions, arguments, tags or their attributes -- they've implemented all these for you with autocomplete features for PHP, HTML, JavaScript and even CSS. And you can always get necessary help information by pressing F1 or using the special Help control

How to setup for laravel

Laravel Plug-in is a part of Codelobster PHP Edition – Professional version
The Laravel plug-in turns a Laravel editor into a full-fledged Laravel IDE!
For working with Laravel PHP framework Laravel plug-in has the following abilities

Autocomplete for class methods after @

Autocomplete for Facades Highlighting for Blade templating engine

Autocomplete for Blade directives

but it will cost you $98 to use these features

50 Times Faster laravel hosting for free

Cloudways offers a 99.9% uptime guarantee with DigitalOcean, 99.9% with Vultr, 99.999% with Amazon and 99.99% with Google. These reliabilities are based on the cloud provider your choose from Cloudways.

Pin It on Pinterest

Scroll Up

Get the best in web dev

Join dunebook.com and recieve best in web dev , once a week FREE

An email has been Sent to your Inbox ! Please Confirm your Subscription :)