Download the PHP package elgibor-solution/laravel-delivery-gosend without Composer
On this page you can find all versions of the php package elgibor-solution/laravel-delivery-gosend. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elgibor-solution/laravel-delivery-gosend
More information about elgibor-solution/laravel-delivery-gosend
Files in elgibor-solution/laravel-delivery-gosend
Package laravel-delivery-gosend
Short Description Integrasi dengan API GoSend untuk pengiriman barang
License Apache-2.0
Homepage https://github.com/elgibor-solution/laravel-delivery-gosend
Informations about the package laravel-delivery-gosend
Laravel Delivery GoSend
Integration package for GoSend delivery API (Instant & Same Day) for Laravel 10+, designed to support multi-tenant usage via runtime config injection.
Note: This library is not an official GoSend SDK. It is a community package built around the integration guide.
Features
- Create GoSend bookings (Instant / Same Day / InstantCar).
- Retrieve booking status (by
orderNoorstoreOrderId). - Cancel bookings.
- Price & distance estimation.
- Webhook endpoint to receive driver / booking status updates.
GoSendDeliverymodel to store bookings.- Event
GoSendStatusUpdateddispatched on every webhook update. - Facade
GoSendfor quick usage. - Config-driven & extendable architecture.
- Multi-tenant ready by overriding config at runtime (
withConfig()).
Requirements
- PHP
^8.2 - Laravel
^10.0 - ext-json
guzzlehttp/guzzle^7.0|^8.0
Installation
The service provider and facade will be auto-discovered.
Publish Config & Migrations
Run migrations:
Configuration
Main config file: config/gosend.php.
Environment & Base URLs
Set in .env:
HTTP Options
Routes & Webhook
In .env:
You must register this token & webhook URL with GoSend.
Multi-tenant Usage (Runtime Config)
The package is config-driven, but also allows runtime overrides via withConfig() on the client or facade.
Typical pattern:
- Store GoSend configuration (environment, client ID, pass key, etc.) per tenant in your database.
- When handling a request for a specific tenant, load that row.
- Call
withConfig()and then use the client as usual.
Example:
Usage
1. Creating a Booking
Using Facade:
Using dependency injection with multi-tenant config:
2. Get Status
Or by storeOrderId:
3. Cancel Booking
4. Estimate Price
5. Webhook Flow (End-to-End)
- Expose webhook URL (e.g.
https://your-app.com/gosend/webhook). - Register this URL & token with GoSend.
-
When booking status changes, GoSend will call this endpoint with a payload like:
ProcessWebhookjob updates theGoSendDeliveryrecord.- Event
GoSendStatusUpdatedis dispatched.
Example listener in your app:
Register in EventServiceProvider:
Example Integration: Controller & Job
Controller
Job: Refresh Status
Testing
Install dev dependencies and run tests:
This will run the provided Pest tests using orchestra/testbench.
Changelog
All notable changes to this project will be documented here.
v0.1.0– Initial release (GoSend booking, status, cancel, estimate, webhook, event, runtime multi-tenant config support).
License
This package is open-sourced software licensed under the Apache-2.0 license.
Sponsor / Donation (Optional)
If this package saves you development time, you can support the maintainer:
- {{your-donation-link-here}}
Thank you! 🙏
All versions of laravel-delivery-gosend with dependencies
illuminate/support Version ^10|^11|^12
illuminate/http Version ^10|^11|^12
illuminate/events Version ^10|^11|^12
illuminate/database Version ^10|^11|^12
guzzlehttp/guzzle Version ^7|^8