PHP code example of justbetter / laravel-akeneo-images

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

    

justbetter / laravel-akeneo-images example snippets




use JustBetter\AkeneoImages\Jobs\ProcessImageJob;

ProcessImageJob::dispatch('disk', '/path/to/image.jpeg', [
    'identifier' => 'sku',
    'attribute' => 'image',
    'type' => 'product',
    'scope' => null,
    'locale' => null,
]);
shell
php artisan vendor:publish --provider="JustBetter\AkeneoImages\ServiceProvider" --tag=config
shell
php artisan akeneo-image:process {disk} {path} {--force}
php artisan akeneo-image:upload {image-id}