Download the PHP package php-etl/sylius-api-php-client without Composer
On this page you can find all versions of the php package php-etl/sylius-api-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-etl/sylius-api-php-client
More information about php-etl/sylius-api-php-client
Files in php-etl/sylius-api-php-client
Package sylius-api-php-client
Short Description Sylius client for the API
License OSL-3.0
Informations about the package sylius-api-php-client
PHP Sylius PHP API client
A simple PHP client to use the Sylius PHP API.
IMPORTANT: Documentation is work in progress.
Compatibility matrix:
Sylius version(s) | API PHP Client version | PHP requirements | CI status |
---|---|---|---|
>= 1.6 <=1.7 | ^1.0 (master) | ^7.3 | |
1.8 | no support | ||
>= 1.9 | ^2.0 | ^8.0 |
Note that our PHP client is backward compatible with versions 1.6 and 1.7.
Usage for API v2 (Sylius >= 1.9)
In Sylius versions 1.9 and later, you will be using the v2 API, or Unified API. This APU will expose 2 sections:
- the Shop API, for accessing data from the customer's point of view
- the Admin API, for accessing data from an administrator point of view
Additionally, you can activate the now deprecated v1 Admin API.
To create your client, there is a client builder for each API that will take care for you of the internals and dependency injection.
Admin API usage
Store API usage
Usage for API v1 (Sylius >= 1.6 <=1.7, deprecated after 1.7)
NOTE: If you are using Sylius version >= 1.10, you will need to reactivate this API following this documentation: https://docs.sylius.com/en/1.10/book/api/introduction.html?highlight=sylius_api
To create your client, there is a client builder that will take care for you of the internals and dependency injection.
All versions of sylius-api-php-client with dependencies
psr/http-client Version ^1.0
psr/http-message Version ^1.0
php-http/httplug Version ^1.1 || ^2.0
php-http/message Version ^1.7
php-http/discovery Version ^1.6
php-http/message-factory Version ^v1.0
php-http/multipart-stream-builder Version ^1.0
php-http/client-implementation Version ^1.0
symfony/expression-language Version ^3.0|^4.0|^5.0