https://github.com/byjg/php-restserver
Create RESTFull services with different and customizable output handlers (JSON, XML, Html, etc.). Auto-Generate routes from swagger.json definition.
https://github.com/byjg/php-restserver
php restful swagger
Last synced: 6 months ago
JSON representation
Create RESTFull services with different and customizable output handlers (JSON, XML, Html, etc.). Auto-Generate routes from swagger.json definition.
- Host: GitHub
- URL: https://github.com/byjg/php-restserver
- Owner: byjg
- License: mit
- Created: 2015-07-30T21:44:06.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-04-06T03:51:07.000Z (6 months ago)
- Last Synced: 2025-04-06T04:27:36.106Z (6 months ago)
- Topics: php, restful, swagger
- Language: PHP
- Homepage:
- Size: 437 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PHP Rest Server
[](https://github.com/byjg/php-restserver/actions/workflows/phpunit.yml)
[](http://opensource.byjg.com)
[](https://github.com/byjg/php-restserver/)
[](https://opensource.byjg.com/opensource/licensing.html)
[](https://github.com/byjg/php-restserver/releases/)Create RESTFull services with different and customizable output handlers (JSON, XML, Html, etc.).
Auto-Generate routes from swagger.json definition.## Documentation
Setup:
- [Set up the RestServer](docs/setup.md)Creating and customizing routes:
- [Defining Route Names](docs/defining-route-names.md)
- [Create Routes using Closures](docs/routes-using-closures.md)
- [Create Routes Manually](docs/routes-manually.md)
- [Create Routes using PHP Attributes](docs/routes-using-php-attributes.md)
- [Auto-Generate from an OpenApi definition](docs/autogenerator-routes-openapi.md) (**hot**)Processing the request and output the response:
- [HttpRequest and HttpResponse object](docs/httprequest-httpresponse.md)Advanced:
- [Middleware](docs/middleware.md)
- [Error Handler](docs/error-handler.md)
- [Intercepting the Request](docs/intercepting-request.md)
- [Caching Routes](docs/caching-routes.md)## Installation
```bash
composer require "byjg/restserver"
```## Dependencies
```mermaid
flowchart TD
byjg/restserver --> byjg/serializer
byjg/restserver --> byjg/singleton-pattern
byjg/restserver --> nikikc/fast-route
byjg/restserver --> filp/whoops
byjg/restserver --> byjg/cache-engine
byjg/restserver --> byjg/webrequest
byjg/restserver --> byjg/jwt-wrapper
byjg/restserver --> ext-json
```----
[Open source ByJG](http://opensource.byjg.com)