New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

julianobailao/laravel-easy-api

Laravel Easy Api Helper.
69 13
Install
composer require julianobailao/laravel-easy-api
Latest Version:0.1.2
PHP:~5.6|~7.0
License:MIT
Last Updated:Feb 1, 2017
Links: GitHub  ·  Packagist
Maintainer: JUB4

Laravel - Easy Api

Latest Version on Packagist Software License Build Status StyleCI Coverage Status Quality Score Total Downloads Donate

This package will helps you build as quickly as possible your APIs, using pre-configured traits and resource controllers, see the wiki for more information.

Install

Via Composer

$ composer require julianobailao/laravel-easy-api

Documentation

Please, see the wiki for the full documentation of this project.

Basic Usage

Create a Model:

Create a model and configure it has you wish.


namespace App;

use Illuminate\Database\Eloquent\Model;

class Donkey extends Model
{
  //
}

Create a controller

Create a controller, and use the ResourceTrait of this package. Exists one trait for each method from resource controller equivalent, if you want use a especific methods, and not all of then, read about Independent Methods.


namespace App\Http\Controllers;

use JulianoBailao\LaravelEasyApi\ResourceTrait;

class DonkeyController extends Controller
{
  use ResourceTrait;
}

Route

Configure your route like a resource controller:

Route::resource('donkeys', 'DonkeyController', ['except' => ['create', 'edit']]);

It's runing!

You have a resource controller with the index, show, store, update and destroy methods, runing for model Donkey, in the /donkeys route.

Please, see the wiki for the full documentation of this project.

License

The MIT License (MIT). Please see License File for more information.

Donate

Support this project and others, via PayPal.

Donate

Related Packages

dfreer/zillow

Laravel 5 Zillow api wrapper. This code is a fork from vinceg/zillow

28,882 2
vincentwon/mws

Amazon MWS API for Laravel.

2,040 2
tzookb/api-responder

laravel api response helper

17 0
netsuitephp/netsuite-laravel

NetSuite PHP laravel provider wrapper

247,832 11

Version History

Version Released PHP License
0.1.2 ~5.6|~7.0 MIT
0.1.1 ~5.6|~7.0 MIT