PHP code example of cerpus / imageservice-client

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

    

cerpus / imageservice-client example snippets


Cerpus\ImageServiceClient\Providers\ImageServiceClientServiceProvider::class,

'ImageService' => \Cerpus\ImageServiceClient\ImageServiceClient::class,

public function register()
{
    $this->app->register(Cerpus\ImageServiceClient\Providers\ImageServiceClientServiceProvider::class);
}


$app->register(App\Providers\AppServiceProvider::class);


return [
    "adapters" => [
        "imageservice" => [
            "handler" => \Cerpus\ImageServiceClient\Adapters\ImageServiceAdapter::class,
            "base-url" => '<url to service>',
            "system-name" => '<system name>',
        ],
    ],
];



return [
    "adapters" => [
        "imageservice" => [
            "handler" => \Cerpus\ImageServiceClient\Adapters\ImageServiceAdapter::class,
	    "base-url" => env('IMAGESERVICE_URL'),
	    "system-name" => env('VERSION_SYSTEM_NAME')
        ],
    ],
];

$cerpusImage = app(Cerpus\ImageServiceClient\Contracts\ImageServiceContract::class)

$cerpusImage = ImageService::<Class Method>

$cerpusImage = new Cerpus\ImageServiceClient\Adapters\ImageServiceAdapter(Client $client, $containerName);
bash
php artisan vendor:publish --provider="Cerpus\ImageServiceClient\Providers\ImageServiceClientServiceProvider" --tag=config