PHP code example of bymayo / akeneo

1. Go to this page and download the library: Download bymayo/akeneo 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/ */

    

bymayo / akeneo example snippets




use craft\helpers\App;

return [
    'apiUrl' => App::env('AKENEO_API_URL'),
    'clientId' => App::env('AKENEO_CLIENT_ID'),
    'secretKey' => App::env('AKENEO_SECRET_KEY'),
    'username' => App::env('AKENEO_USERNAME'),
    'password' => App::env('AKENEO_PASSWORD'),
    'attributeCacheDuration' => 21600,
    'syncPageSize' => 75,
    'syncMaxPages' => 1000,
    'testSyncLimit' => 10,
    'assetFolderName' => 'Akeneo',
    'customQueue' => false,
    'jobPriority' => 1024,
    'jobTtr' => 300,
];

php craft akeneo/sync/all --source=1
php craft akeneo/sync/data-only --source=1
php craft akeneo/sync/images-only --source=1
php craft akeneo/sync/test --source=1
php craft akeneo/sync/test --source=1 --limit=25

php craft akeneo-queue/listen