php-restserver

Create RESTFull services with different and customizable output handlers (JSON, XML, Html, etc.). Auto-Generate routes from swagger.json definition.

MIT License

Downloads
37.5K
Stars
3

Bot releases are visible (Hide)

php-restserver - Release 4.9.4 Latest Release

Published by byjg 2 months ago

What's Changed

Full Changelog: https://github.com/byjg/php-restserver/compare/4.9.3...4.9.4

php-restserver - Release 4.9.3

Published by byjg 4 months ago

What's Changed

Full Changelog: https://github.com/byjg/php-restserver/compare/4.9.2...4.9.3

php-restserver - Release 4.9.2

Published by byjg 5 months ago

What's Changed

  • Minor Fix in the Error Handler
  • Add trace to detailed error handler
  • Add static HttpRequest::ip()
  • Add static HttpRequest::userAgent()
  • Improve JwtMiddleware.php and accept JwtWrapper 5.0
  • Fix PHPUnit test
  • Change how mock works to allow Dependency Injection
  • Middleware Documentation
  • Send Errors to a LoggerInterface

Full Changelog: https://github.com/byjg/php-restserver/compare/4.9.1...4.9.2

php-restserver - Release 4.9.1

Published by byjg 10 months ago

What's Changed

  • 4.9 by @byjg in https://github.com/byjg/php-restserver/pull/13
  • Add UnitTest for the request
  • Fix mock header
  • Add some extra parameters to AfterMiddlewareInterface.php
  • Some code smell adjustments
  • Fix error in method parser
  • Allow empty payload.
  • Add param to MockHttpRequest.php
  • Fix MiddleWare After Processing $className and $method in case of error.
  • Set the response code.
  • Add Dependencies
  • Refactor Docs + GHActions

Full Changelog: https://github.com/byjg/php-restserver/compare/4.9.0...4.9.1

php-restserver - Release 4.9.0

Published by byjg over 1 year ago

What's Changed

  • Bump all dependencies
  • Added Middleware for CORS, JSON, StaticFiles and others
  • Major refactor in internal code.

Full Changelog: https://github.com/byjg/restserver/compare/4.0.1...4.9.0

php-restserver - Release 4.0.1

Published by byjg over 3 years ago

Update Webrequest component

php-restserver - Release 4.0.0

Published by byjg over 4 years ago

Major Refactory

  • Renamed classes:

    • Namespace ByJG\RestServer\HandleOutput to ByJG\RestServer\OutputProcessor
    • Class BaseHandler to BaseOutputProcessor
    • Class HtmlHandler to HtmlOutputProcessor
    • Class JsonHandler to JsonOutputProcessor
    • Class JsonCleanHandler to JsonCleanOutputProcessor
    • Class HandleOutputInterface to OutputProcessorInterface
    • Class XmlHandler to XmlOutputProcessor
    • Class JsonResponseHandler to JsonResponseErrorHandler
    • Class PlainResponseHandler to PlainResponseErrorHandler
  • Created the RouteDefinition concept and decouple route creation (Swagger and standard)

  • Specialized ServerRequestHandler

  • Implemented MockRequestHandler (and some refactoring to accomplish this)

  • Renamed all Swagger to OpenApi . Fix on README.md

  • Several internal improvements.

php-restserver - Release 3.1.1

Published by byjg over 4 years ago

Upgrade URI component

php-restserver - Release 3.1.0

Published by byjg almost 5 years ago

  • Added support to OpenApi >= 3.0.0
php-restserver - Release 3.0.1

Published by byjg over 5 years ago

  • Fix issue #7 (Only variables should be passed as reference)
  • Fix BasePath in generate routes from Swagger
  • Improve some unit tests.
php-restserver - Release 3.0.0

Published by byjg over 6 years ago

  • Some fixes from PHPCS / PHPD
  • Update documentation and dependencies
  • Auto-generate routes from Swagger definition
  • Introduced a very high customizable handlers (Closure or class)
  • Improve how to create a new Route.
php-restserver - Release 2.1.3

Published by byjg almost 7 years ago

  • Enable add integer, bool, etc in the ResponseBag
  • Added methods HttpResponse::addHeader and HttpResponse::setResponseCode
php-restserver - Release 2.1.2

Published by byjg almost 7 years ago

Added JsonCleanHandler and refactoring Handlers.

php-restserver - Release 2.1.1

Published by byjg about 7 years ago

php-restserver - Release 2.1.0

Published by byjg about 7 years ago

Major Refactory

php-restserver - Release 2.0.1

Published by byjg about 8 years ago

Update composer components

php-restserver - Release 2.0.0

Published by byjg about 8 years ago

Big change moving component "byjg/anydataset" to "byjg/serializer" in the ResponseBag.

This may generate different json between versions 1.x e 2.x

php-restserver - Release 1.1.1

Published by byjg over 8 years ago

php-restserver - Release 1.1.0

Published by byjg over 8 years ago

Major change in the route handling

php-restserver - Release 1.0.2

Published by byjg over 8 years ago