Giter VIP home page Giter VIP logo

php-rest-api's Introduction

Build Status Code Coverage Total Downloads Latest Stable Version Latest Unstable Version License

MediaMonks Rest API

This library contains an event subscriber to easily create a Rest API with the Symfony HttpKernel. By default this library will output according to our MediaMonks Rest API spec but since we believe it could be very useful for other companies too it's very easy to extend it or implement your own.

Highlights

  • Thrown exceptions will be converted automatically
  • Supports custom serializers like JMS, uses json serializer by default
  • Supports custom response models
  • Supports application/json, application/x-www-form-urlencoded & multipart/form-data input
  • Supports method overriding
  • Supports forcing a "200 OK" status method
  • Supports paginated responses
  • Supports wrapping json response in a method (jsonp) and post message
  • Should work with any framework that uses HttpKernel

Documentation

Documentation and examples can be found in the /docs folder.

Requirements

  • PHP >= 8.0

To use the library.

Installation

For Symfony Framework users it is recommended to install the Rest API Bundle instead of this library.

Install this package by using Composer.

$ composer require mediamonks/rest-api

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

php-rest-api's People

Contributors

csizmazia avatar edwin-luijten avatar marcobrotas avatar mediamonks-robert avatar mm-devmonk avatar slootjes avatar sral97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-rest-api's Issues

plans for PHP 8?

hey!
are there any plans to allow this package to be used on PHP 8?
not talking about using any PHP 8 features or so. allowing it in composer.json would already be a start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.