abdallahmohammed / laravel-bosta
laravel-bosta
dev-master
2023-07-31 00:40 UTC
Requires
- php: ^7.4|^8.0|^8.1
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.2
- illuminate/contracts: ^7.0|^8.0|^9.0|^10.0
- spatie/laravel-package-tools: ^1.15
Requires (Dev)
- orchestra/testbench: ^5.0|^6.0|^7.0|^8.0
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.32
- vimeo/psalm: ^5
This package is not auto-updated.
Last update: 2024-11-19 05:18:50 UTC
README
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.