floor9design/laravel-restful-api

A set of restful API classes that offer strict RESTful methods for laravel

dev-master 2024-11-13 08:52 UTC

This package is auto-updated.

Last update: 2024-11-13 08:52:53 UTC


README

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.