/laravel4-boilerplate

Boilerplate for starting up Laravel 4 App Development

Primary LanguagePHP

Laravel 4.2 PHP Framework Boilerplate

While setting up any Laravel app, you need to setup so many things like some of your favourite plugins, your common Utils, Exceptions, Constants etc.

I have created this boilerplate for my personal use and thought like it can also help some other people who are also tired with this type of setup every time.

This boilerplate includes following things:

  • Plugins
  • Custom Libraries
    • Base controller for all Controllers
    • Constants file - Can be used as default constants of your app, no need to setup a new constants file
    • AppRunTimeException - Exception to abort request at anytime and send error response to user
    • AppDataValidationException - Exception to handle validator messages by Laravel validator and send error to user
    • AppControllersFactory - Factory to store created instances of controllers
    • CommonAppUtils - Common Util functions like generateUUID, castObject, makeAssocArrOfObjectsByField etc.
    • Response Manager - Response Manager to setup a response structure
    • events.php - Put all your event listeners here

Install

Here are the steps to get started:

  • Clone this repository - git clone
  • Run composer update command composer update

And you are ready to go. !! :)

Credits

This Laravel App Boilerplate is created by Mitul Golakiya.