Download the PHP package kartenmacherei/rest-framework without Composer
On this page you can find all versions of the php package kartenmacherei/rest-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kartenmacherei/rest-framework
More information about kartenmacherei/rest-framework
Files in kartenmacherei/rest-framework
Download kartenmacherei/rest-framework
More information about kartenmacherei/rest-framework
Files in kartenmacherei/rest-framework
Vendor kartenmacherei
Package rest-framework
Short Description Micro framework for creating RESTful webservices
License MIT
Homepage https://github.com/kartenmacherei/rest-framework
Package rest-framework
Short Description Micro framework for creating RESTful webservices
License MIT
Homepage https://github.com/kartenmacherei/rest-framework
Please rate this library. Is it a good library?
Informations about the package rest-framework
RESTful Server Framework
The goal of this framework is to enable us to quickly bootstrap new RESTful Services while sticking to our very strict coding guidelines. This especially means that any kind of magic should be avoided.
Basic Concepts
Components
RestResource
- Provides a
Pattern
that can be matches against an - Supports HTTP verbs by implementing interfaces like
SupportsGetRequests
- Returns
Action
objects through explicit methods likegetPostCommand()
orgetQuery()
ResourceRouter
- Holds references to all objects it is responsible for
- Determines if it is responsible for routing a given URL in
canRoute()
- Returns a
RestResource
indoRoute()
Command
- Changes the state of a resource (like creating or updating)
Query
- Does not change the state of a resource and only returns existing data.
Using the Framework
Requirements
- Composer
- PHP 7.0+
Add the Framework to your composer.json:
Connect your code to the Framework:
See https://github.com/kartenmacherei/rest-framework-example for a working example.
License
This software is licensed under the terms of the MIT license. See LICENSE.md for the full license.
All versions of rest-framework with dependencies
PHP Build Version
Package Version
The package kartenmacherei/rest-framework contains the following files
Loading the files please wait ....