abdallahmohammed/laravel-bosta

dev-master 2023-07-31 00:40 UTC

This package is not auto-updated.

Last update: 2024-11-19 05:18:50 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Installation

You can install the package via composer:

composer require abdallahmohammed/laravel-bosta

You can publish and run the migrations with:

You can publish the config file with:

php artisan vendor:publish --provider="LaravelBosta\BostaServiceProvider" --tag="laravel-bosta-config"

This is the contents of the published config file:

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'),
    ],
];

Usage

$bosta = new LaravelBosta();
echo $bosta->getDeliveries();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.