Skip to content

white-frame/boilerplate

Repository files navigation

WhiteFrame Framework Boilerplate

This project is a starting point showing the usage of the full power of the WhiteFrame/Helloquent Model and the WhiteFrame/Http Controller. In a few lines you have a full example of a User management project :

  • Action : listing, creating, editing and deleting eloquent models.
  • Flash message : Simple action confirmation based on Laracast/Flash (not included in the project)
  • RESTful URL : Built-in Resource Controller with REST Urls.
  • API-Ready : Built-in Resource Controller handle multiple output format including JSON AND JSONP responses.

Important Elements

  • Routes : Linking a UserControllerinto the users endpoint.
  • UserController : This controller extends WhiteFrame\Http\Controller\Resource\Controller features for automatically handling all actions except update witch require a special logic with the password input. You need to specify the $views folder for loading index, create, edit, show views.
  • User : The User Model with the Helloquent configuration
  • UserPresenter : Allows you to customize atributes presentation with $user->present()->email into your views.
  • UserRepository : Bring the repository pattern into your application.
  • TODO UserTransformer : Allows you to transform your object into arrays for API displaying.

About

Simple WhiteFrame Framework Boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages