Looking to hire Laravel developers? Try LaraJobs

laravel-restful-api maintained by floor9design

Description
A set of restful API classes that offer strict RESTful methods for laravel
Author
Last update
2026/02/09 10:57 (dev-master)
License
Downloads
204

Comments
comments powered by Disqus

laravel-restful-api

Latest Version Packagist Software License

Build Status Build Status

Github Downloads Packagist Downloads

A set of restful API classes that offer strict RESTful methods for laravel. Currently in development.

Introduction

Laravel's out the box RESTful implementation is fairly easy to use, but it is not a strict REST api. This repository offers classes to deliver a true REST implementation that matches the wikipedia definition.

Features

  • Simple setup/configuration
  • Simple "plug-in" traits and interfaces that quickly add a full set of RESTful responses to a controller
  • JSON API compliant responses
  • Not implemented/not allowed/data responses available on a per method/route basis
  • Easily overrideable by your own code on a per method/route basis
  • Suports laravel validation

Install

Via Composer

composer require floor9design/laravel-restful-api

Usage

It is recommended you read the background information section:

This is defined in detail in the usage section:

Setup

This is defined in detail in the setup section:

Testing

Tests under development and are underway.

To run the existing tests:

  • ./vendor/phpunit/phpunit/phpunit

Documentation and coverage can be generated as follows:

  • ./vendor/phpunit/phpunit/phpunit --coverage-html docs/tests/

Credits

Changelog

A changelog is generated here:

License

This software is available under the MIT licence.