PHP code example of sashalenz / delivery-auto-api

1. Go to this page and download the library: Download sashalenz/delivery-auto-api 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/ */

    

sashalenz / delivery-auto-api example snippets


return [
    'url' => env('DELIVERY_API_URL', 'https://delivery-auto.com/api/'),

    'public_key' => env('DELIVERY_API_PUBLIC_KEY', null),
    'secret_key' => env('DELIVERY_API_SECRET_KEY', null),
    
    'culture' => env('DELIVERY_API_CULTURE', 'RU_ru')
];

$delivery = new Sashalenz\DeliveryAuto();
echo $delivery->echoPhrase('Hello, sashalenz!');
bash
php artisan vendor:publish --provider="Sashalenz\DeliveryAuto\DeliveryServiceProvider" --tag="delivery-api-migrations"
php artisan migrate
bash
php artisan vendor:publish --provider="Sashalenz\DeliveryAuto\DeliveryServiceProvider" --tag="delivery-api-config"