Download the PHP package akika/laravel-weevo without Composer
On this page you can find all versions of the php package akika/laravel-weevo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-weevo
Laravel Weevo Package by Akika Digital
The Laravel Weevo package allows you to connect your application with the Weevo last mile delivery app.
The package automatically requests and caches the Weevo access token using the configured token TTL. You do not need to manually call authenticate() before creating deliveries.
System Requirements
- PHP 8.1 or later
- Laravel 10.x, 11.x or 12.x
Installation
You can install the package via composer:
After installing the package, publish the configuration file using the following command:
You can also run the following command to publish the config file
The configuration file will be published to:
Laravel automatically discovers the package. No additional service provider registration is required.
ENV Variables
You can add the following variables to your env file. Make sure to add the requested information.
Facade Import
Initialize library
Use the following snippet to use credentials in the config file
Use the following snippet to define the variables. Fit for multivendor support
You can also use the credentials class as shown below:
Create Delivery
Use the following function to create a delivery
6. Mention date format
You use several dates.
State once:
Get delivery details
To show delivery details, pass the trip_id in the function below:
Update Payment Status
Pass the data as shown below to update the delivery payment status
Delivery Statuses
Below are the available statuses
Sample Response
All methods return json on success.
Error Handling
All methods return null when the request fails.
Quality Assurance
The package is fully tested using Pest PHP and PHPUnit.
Test Coverage
Current test coverage:
- ✅ 100% Line Coverage
- ✅ 100% Method Coverage
- ✅ 100% Class Coverage
- ✅ 100% Branches Coverage
Main coverage report:
License
This package is licensed under the MIT License.
All versions of laravel-weevo with dependencies
illuminate/support Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
illuminate/http Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
guzzlehttp/guzzle Version ^7.5