Download the PHP package auto1-oss/service-api-client-bundle without Composer
On this page you can find all versions of the php package auto1-oss/service-api-client-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download auto1-oss/service-api-client-bundle
More information about auto1-oss/service-api-client-bundle
Files in auto1-oss/service-api-client-bundle
Package service-api-client-bundle
Short Description Auto1 Service API Client for PHP projects
License MIT
Informations about the package service-api-client-bundle
Usage
Bundle uses php-http/httplug client abstraction. So you'll need to install some psr7-compatible client into your project to be used by this bundle. For more details: php-http/httplug clients and adapters.
This bundle builds requests via PSR-17 HTTP factories, discovered
with Http\Discovery\Psr17FactoryDiscovery. Your project therefore also needs a discoverable PSR-17
factory implementation (for example nyholm/psr7, or guzzlehttp/psr7 >= 2.0 — the PSR-17 factory
was introduced in Guzzle PSR-7 2.0, so 1.x is not enough).
Upgrade note:
Service\Request\RequestFactoryno longer depends on the abandonedphp-http/message-factory. Its constructor now takes PSR-17 factories (Psr\Http\Message\UriFactoryInterface,RequestFactoryInterface,StreamFactoryInterface) instead ofHttp\Message\UriFactory+Http\Message\MessageFactory. If you instantiate or re-register this service yourself, update the wiring — the container serviceauto1.api.message_factorywas replaced byauto1.api.request_factoryandauto1.api.stream_factory.
config.yml
- request_visitors - Request visitors (RequestVisitorInterface) are aimed to modify your Request - like adding custom headers. You can also TAG services with 'auto1.api.request_visitor' to make them visitors. Warning! By setting this configuration you will override default values!
- strict_mode - boolean, by default. If it is the request factory ignores any request body for GET, HEAD, OPTIONS and TRACE HTTP methods. In other words, client will always send such requests without body.
Example of EP definition (yaml):
Example of ServiceRequest implementation:
Example of Repository implementation:
For more info - have a look at service-api-components-bundle usage:
All versions of service-api-client-bundle with dependencies
auto1-oss/service-api-components-bundle Version ^1.0|^2.0
auto1-oss/service-api-request Version ^1.0
symfony/serializer Version ~5.0|~6.0|~7.0|~8.0
symfony/dependency-injection Version ~5.0|~6.0|~7.0|~8.0
symfony/config Version ~5.0|~6.0|~7.0|~8.0
symfony/http-foundation Version ~5.0|~6.0|~7.0|~8.0
symfony/http-kernel Version ~5.0|~6.0|~7.0|~8.0
symfony/yaml Version ~5.0|~6.0|~7.0|~8.0
php-http/client-common Version ^2.3
php-http/discovery Version ^1.7
php-http/httplug Version ^2.2
php-http/promise Version ^1.1
psr/http-message Version ^1.0|^2.0
psr/http-factory Version ^1.0
psr/log Version ^1.1|^2.0|^3.0