Download the PHP package texhub/laklak-b2b without Composer
On this page you can find all versions of the php package texhub/laklak-b2b. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download texhub/laklak-b2b
More information about texhub/laklak-b2b
Files in texhub/laklak-b2b
Package laklak-b2b
Short Description LakLak B2B delivery API SDK for any PHP framework with first-class Laravel support: cities, parcel terminals, pickup points, shipments, label printing and delivery webhooks.
License MIT
Homepage https://texhub.pro
Informations about the package laklak-b2b
TexHub · LakLak B2B
English · Русский
A clean, framework-agnostic PHP SDK for the LakLak B2B delivery API — cities, parcel terminals & pickup points, shipments, label printing and delivery webhooks — with first-class Laravel support.
What's new in v1.0.1
- Parcel terminals & pickup points now include
visible_id(e.g.PT-102,PP-042) and aclusterobject (id,name) — read them with$item['visible_id']/$response->get('cluster.name').- New delivery status
expired(andon_the_way) inDeliveryStatus;isFinal()now coversdeliveredandexpired.- The delivery address changed webhook now carries the full
drop_off_location— read it via$event->dropOffLocation().
Features
- Addresses — cities, parcel terminals, pickup points (with search)
- Shipments — create, update payment status & weight, label print URL
- Webhooks — verify
X-Webhook-Key+ timestamp, parse delivery status & address changes - Test / Production switch ·
X-API-Keyauth · typed enums & responses - Fully unit-tested
Installation
Requirements: PHP ≥ 8.2 with curl, json, hash.
Quick start
Shipments
When
payment_statusispaid, a packageweightis required (validated by the SDK).
Webhooks (LakLak → you)
LakLak calls your URL with headers X-Webhook-Key (the secret you gave them) and X-Webhook-Timestamp.
Error handling
Laravel
Auto-discovered. Publish config:
.env:
Facade:
Exclude your webhook route from CSRF (
VerifyCsrfToken::$except).
Testing
Architecture
License
MIT © TexHub Pro — built by Mahmudi Shodmehr.
All versions of laklak-b2b with dependencies
ext-curl Version *
ext-json Version *
ext-hash Version *