PHP code example of almesery / laravel-bosta

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

    

almesery / laravel-bosta example snippets


return [
     'stage' => [
        'bosta_api_key' => env('STAGE_BOSTA_API_KEY', null),
        'base_url' => env('STAGE_BASE_URL', 'https://stg-app.bosta.co'),
    ],
    'production' => [
        'bosta_api_key' => env('PRODUCTION_BOSTA_API_KEY', null),
        'base_url' => env('PRODUCTION_BASE_URL', 'https://app.bosta.co'),
    ],
];

$bosta = new Almesery\Bosta();
echo $bosta->getDeliveries();
bash
php artisan vendor:publish --provider="Almesery\Bosta\BostaServiceProvider" --tag="laravel-bosta-config"