Download the PHP package cdgco/php-rest-service without Composer
On this page you can find all versions of the php package cdgco/php-rest-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-rest-service
# PHP REST Service
PHP REST Service is a simple and fast PHP class for RESTful JSON APIs.
[![Build Status](https://img.shields.io/circleci/build/github/cdgco/php-rest-service?style=flat-square)](https://app.circleci.com/pipelines/github/cdgco/php-rest-service)
[![PHP Version](https://img.shields.io/packagist/php-v/cdgco/php-rest-service?style=flat-square)](https://www.php.net/downloads)
[![Package Version](https://img.shields.io/packagist/v/cdgco/php-rest-service?style=flat-square)](https://packagist.org/packages/cdgco/php-rest-service)
[![License](https://img.shields.io/github/license/cdgco/php-rest-service?style=flat-square)](https://github.com/cdgco/php-rest-service/blob/master/LICENSE)
[https://cdgco.github.io/php-rest-service](https://cdgco.github.io/php-rest-service)
Features
- Easy to use syntax
- Regular Expression support
- Error handling through PHP Exceptions
- JSON, XML, and plain text responses
- Automatic OpenAPI specification generation
- Parameter validation through PHP function signature
- Can return a summary of all routes or one route through
OPTIONS
method based on PHPDoc (ifOPTIONS
is not overridden) - Support of
GET
,POST
,PUT
,DELETE
,PATCH
,HEAD
andOPTIONS
- Suppress the HTTP status code with ?_suppress_status_code=1 (for clients that have troubles with that)
- Supports custom error handling, logging, access control and response formatting functions.
- Supports ?_method=
httpMethod
as addition to the actual HTTP method. - With auto-generation through PHP's
reflection
Requirements
- PHP 7.4+ (Tested on PHP 7.4 - 8.2)
Installation
php composer require cdgco/php-rest-service
Demo
Manual Endpoint Creation
Automatic Endpoint Creation
Both methods will generate the following endpoints:
Documentation
Read the full documentation at https://cdgco.github.io/php-rest-service.
License
Licensed under the MIT License. See the LICENSE file for more details.
All versions of php-rest-service with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4.0
The package cdgco/php-rest-service contains the following files
Loading the files please wait ....