This package is abandoned and no longer maintained. No replacement package was suggested.

Prebuilt http components for white frame

5.2.0.0 2016-01-19 14:58 UTC

This package is not auto-updated.

Last update: 2020-07-29 13:44:00 UTC


README

Simple http Controller layout for WhiteFrame\Helloquent REST models and response helpers for browser and api response.

REST Model Controller

This controller will require a model with valid Presenter, Renderer, Transformer (for API), Repository, and a valid endpoint.

Simply extends your controller with WhiteFrame\Http\Controller\Resource\Controller.

use WhiteFrame\Http\Controller\Resource\Controller;

class UserController extends Controller
{
    protected $entity = 'Path\To\User';
}

Response Helpers

Add the WhiteFrame\Http\Controller\Helpers trait into your controller and you will have the following helpers :