Download the PHP package ddb/stuart-api-bundle without Composer
On this page you can find all versions of the php package ddb/stuart-api-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ddb/stuart-api-bundle
More information about ddb/stuart-api-bundle
Files in ddb/stuart-api-bundle
Package stuart-api-bundle
Short Description Bundle to communicate with the stuart API
License MIT
Informations about the package stuart-api-bundle
StuartApiBundle
Simple bundle using the stuart php library to integrate with symfony
Configuration
Functions
StuartApi
Used to create and dispatch jobs
- public function createJobObjectFromRequest(Request $request)
- public function createJobObject(
- public function addJob(Job $job)
StuartApiController
These function have routes exposed and return a JSONResponse
- nextPickupSlot($city = "Bordeaux") : Get the next available pickup slot for the city
- validateJob(Request $request)
- priceJob(Request $request)
Events
StuartApiEvents.php defines constants for the event names
WebhookEvent.php
This event redispatches any requests on the /webhook route. You can register an EventSubscriberInterface in your application to listen to these events and update your orders accordingly.
Only Request coming from the whitelisted ips in the configuration will be allowed through and only for the corresponding environment.
Translations
All the errors returned by the Stuart API can be translated using the Errors.(lang).yaml files inside Resources/translations
All versions of stuart-api-bundle with dependencies
stuartapp/stuart-client-php Version ^3.5
symfony/config Version ^4.0
symfony/dependency-injection Version ^4.0
symfony/http-kernel Version ^4.0
symfony/serializer Version ^4.2
symfony/translation Version ^4.2
symfony/event-dispatcher Version ^4.2