Free Laravel Artisan GUI’s

Laravel’s PHP Artisan console helper is brilliant, it seamlessly speeds up many tasks for you and does them very well. But, if you’re like me, and you don’t really get a buzz from using the raw command line with no autocomplete features or error checking, then this article is for you. This article goes through the variety of Artisan GUI’s both in web-form and console. All are free of course and can be the perfect replacement for the raw command line.

Artisan GUI

First up is Artisan GUI, this easy-to-install GUI is web-based and brings a touch of the future to your console activities. It doesn’t have every single function that you have with the raw CLI but the majority of the important stuff is available. As you can see in the live-screenshot example above commands that are often used as the controller, model, migration and migrate commands are ready for utilization.

 

laravel artisan gui example

 

It’s super simple to use, by typing in for example, ‘MyNewController’ in the controller input and clicking the tick button, you will be notified that the controller has been made. See screenshot below –

command executed screenshot

Of course, then checking in the controller folder of your Laravel project, you will see that the new controller has been created. It’s actually pretty cool.

laravel artisan gui controller created

How is it installed and used? 

Installation can literally be done in under 2 minutes, follow these steps below to install it!

  1. Run composer require martins-74/artisan-gui:dev-master
  2. Add the following to your config/app.php file – Martins\ArtisanGUI\ArtisanGUIServiceProvider::class,
  3. Execute the following command –php artisan vendor:publish and enter the number of the ArtisanGui provider, then hit enter
  4. Edit the password to your liking in the new config/artisan-gui-configs.php file.
  5. Navigate to http://yourproject/artisan-gui
  6. Enter the password you saved in the config file in step 4, twice (Don’t ask me why) and hit enter.
  7. Done, your into the web-console!

Nice Artisan

Next up is Nice Artisan, which describes the package cleverly, it is actually, really nice! Now, when initially using the Artisan web-form, you will be presented with a range of quick menu-links which load up a list of commands. For example, if I click the Make menu link, commands like the following are loaded –

  • make:controller
  • make:auth
  • make:job
  • make:exception

Further to these commands being listed, they are described too, which is really good too. Especially if you’re quite new to Laravel. These little descriptions are short and sweet, allowing you to instantly know what they will do.

nice artisan screenshot

This is where the really cool bit comes in though, this web-form artisan makes it super-simple to do things for one, but secondly, really does offer the nitty gritty as options too.

For example, I selected the make:controller option, and the form that opens up asks for a controller name and a model name. Then it even offers further parameters like, do I want it to be a resource controller? Tick the box for yes and bobs your uncle.

make controller nice artisan

Hit the Go button and a notification pops up, informing you that both model and controller were created.

controller created - nice artisan

Another really cool feature of the many available is the routes menu, you can use one of the route menus to list all of your projects registered routes. The web-tool lists out your registered routes in a beautiful format that you can easily digest. Much better than delving into the code in my opinion. Here is an example below –

registered routes nice artisan

How is it installed and used? 

Another really quick setup with Nice Artisan, see the steps below.

  1. Run composer require bestmomo/nice-artisan
  2. Add the following to your config/app.php file – Bestmomo\NiceArtisan\NiceArtisanServiceProvider::class,
  3. Execute the following command –php artisan vendor:publish --tag=niceartisan:config
  4. Navigate to http://yourproject/niceartisan
  5. Done, your into the web-console!

Artisan Menu

I don’t particularly know why I love auto-completion in terminal windows, but I really do. There is just something about boosting up a raw terminal window that satisfies my nerdy side. Artisan Menu does just that, brings a more interactive artisan CLI into play whilst using Laravel.

This brilliant little package takes 2 seconds to install and can be called up in the command line in an instant. From the moment you call php artisan menu everything becomes super easy. You’re presented with a navigatable menu with sub-menus and once you find the action you want, a little popup box comes up for you to enter some values!

It’s that beautiful, I produced a little screen recording of it in action!

 

How is it installed and used? 

The quickest set up yet…

  1. Run composer require --dev divineomega/artisan-menu
  2. Add the following to your config/app.php file – DivineOmega\ArtisanMenu\Providers\ArtisanMenuServiceProvider::class,
  3. Now boot up your terminal again and type php artisan menu
  4. Done, the console menu will appear!

Summary

These productivity-boosting extensions are brilliant for Laravel developers, they steer you away from looking online for commands and then executing them on a raw command line. Having just one of these extensions will not only give you a nice way of developing with the command line but enables you to discover the many things artisan is capable of. The question is, which will you use?

 

SHARE ON

The Author: Dan Englishby

Free Laravel Artisan GUI’s

You May Also Like

Leave a Reply

Your email address will not be published.