PHP code example of php-etl / sylius-api-php-client
1. Go to this page and download the library: Download php-etl/sylius-api-php-client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
php-etl / sylius-api-php-client example snippets
$builder = new \Diglin\Sylius\ApiClient\SyliusAdminClientBuilder();
$client = $builder->buildAuthenticatedByPassword('johndoe', 'password');
$client->getProductApi()->all();
$builder = new \Diglin\Sylius\ApiClient\SyliusStoreClientBuilder();
$client = $builder->buildAuthenticatedByPassword('[email protected]', 'password');
$client->getProductApi()->all();