2017 © Pedro Peláez
 

library laravel-api-controller

Simplified API controller, inspired by Jeffrey Way. Compatible with Laravel 5+ and Lumen 5+.

image

itsdamien/laravel-api-controller

Simplified API controller, inspired by Jeffrey Way. Compatible with Laravel 5+ and Lumen 5+.

  • Monday, May 28, 2018
  • by itsDamien
  • Repository
  • 1 Watchers
  • 2 Stars
  • 4,215 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

itsDamien Laravel API Controller, (*1)

Latest Stable Version Total Downloads License Build Status Maintainability Test Coverage StyleCI, (*2)

A simple api controller helper trait, compatible with Lumen 5+ and Laravel 5+. The goal of this project is to make creating API projects simple. Inspired by Jeffrey Way (https://www.laracasts.com), (*3)

Installation

composer require itsdamien/laravel-api-controller, (*4)

Basic Setup/Usage

use ItsDamien\Api\ApiController;

class MyController extends Controller {

    use ApiController;

    public function index() {
        return $this->respond(['status' => 'hello world']);
    }

}

Api Helper functions

Please browse through the source to see a full list., (*5)

//200 response
$this->respond();

//201 response
$this->respondCreated();

//500 error
$this->respondServerError();

//422 error
$this->respondUnprocessable();

//General error
$this->respondWithError('message here');

License

Laravel Api Controller is open-sourced software licensed under the MIT license, (*6)

The Versions

28/05 2018

dev-master

9999999-dev

Simplified API controller, inspired by Jeffrey Way. Compatible with Laravel 5+ and Lumen 5+.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Damien Criado

laravel api lumen api controller

03/03 2017

v1.0.3

1.0.3.0

Simplified API controller, inspired by Jeffrey Way. Compatible with Laravel 5+ and Lumen 5+.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Damien Criado

laravel api lumen api controller

03/03 2017

v1.0.2

1.0.2.0

Simplified API controller, inspired by Jeffrey Way. Compatible with Laravel 5+ and Lumen 5+.

  Sources   Download

MIT

The Requires

 

by Damien Criado

laravel api lumen api controller

03/03 2017

v1.0.1

1.0.1.0

Simplified API controller, inspired by Jeffrey Way. Compatible with Laravel 5+ and Lumen 5+.

  Sources   Download

MIT

The Requires

 

by Damien Criado

laravel api lumen api controller

01/03 2017

v1.0

1.0.0.0

Simplified API controller, inspired by Jeffrey Way. Compatible with Laravel 5+ and Lumen 5+.

  Sources   Download

MIT

The Requires

 

by Damien Criado

laravel api lumen api controller