Download the PHP package mtarld/api-platform-ms-bundle without Composer
On this page you can find all versions of the php package mtarld/api-platform-ms-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mtarld/api-platform-ms-bundle
More information about mtarld/api-platform-ms-bundle
Files in mtarld/api-platform-ms-bundle
Package api-platform-ms-bundle
Short Description API Platform Microservice Bundle
License MIT
Informations about the package api-platform-ms-bundle
API Platform Microservice Bundle
A Microservice tools bundle for API Platform.
A microservice bundle ?
In a microservice context where each microservices are API Platform instances, each instance must behave as an API Platform data producer and an API Platform data consumer.
But API Platform isn't intended to behave like a client.
Therefore, here comes the API Platform Microservice Bundle!
This bundle intents to provide a set of tools to ease the development of client behaving microservices by trying to abstract the http call layer.
Getting started
Installation
You can easily install API Platform Microservice bundle by composer
Then, bundle should be registered. Just verify that config\bundles.php
is containing :
Configuration
Once the bundle is installed, you should configure it to fit your needs.
To do so, edit config/packages/api_platform_ms.yaml
and config/routes/api_platform_ms.yaml
And you're ready to go ! :rocket:
Provided tools
-
API resource existence constraint: Help you to ensure that the related resources are existing on the other microservice when doing validation.
-
Resource collection and pagination: Handy objects and services to ease paginated collection iteration.
-
HTTP repository: An extendable HTTP repository that you could configure to fetch resources.
-
HTTP client wrappers: Clients that adapt HTTP calls according to the targeted microservice configuration.
-
Authentication header providers: Providers that dynamically inject authentication headers in requests.
-
ConstraintViolation list denormalizer: Allows you to create a
ConstraintViolationList
instance from a serialized string. - Extension points: Events that you can listen to extend the bundle behavior.
Supported microservice formats
Currently, API Platform supported formats are:
- jsonld
- jsonapi
- jsonhal
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
After writing your fix/feature, you can run following commands to make sure that everything is still ok.
Authors
- Mathias Arlaud - mtarld - mathias(dot)arlaud@gmail(dot)com
All versions of api-platform-ms-bundle with dependencies
api-platform/core Version ^3.0.12
symfony/http-client Version ^6.1
symfony/property-access Version ^6.1
symfony/serializer Version ^6.1
symfony/validator Version ^6.1
symfony/event-dispatcher Version ^6.1
symfony/polyfill-php80 Version ^1.20
psr/log Version ^1.0|^2.0|^3.0
symfony/web-link Version ^6.1
symfony/http-foundation Version ^6.1