LogisBaseLogisBase
Official Client Libraries

SDKs & Libraries

Official client libraries for the LogisBase API. Available for JavaScript and PHP, with a dedicated Storefront SDK for custom commerce experiences.

JavaScript SDK
@logisbase/sdk
npm install @logisbase/sdk
Runtime: Node.js · Browser

Official JavaScript SDK for the LogisBase API. Works in Node.js and modern browser environments with full TypeScript support.

PHP SDK
logisbase/logisbase-php
composer require logisbase/logisbase-php
Runtime: PHP 7.4+

Official PHP SDK for server-side LogisBase API integration. Composer installable and PSR-4 compliant.

Storefront SDK
@logisbase/storefront-sdk
npm install @logisbase/storefront-sdk
Runtime: Node.js · Browser

Purpose-built JavaScript SDK for LogisBase Storefront. Browse products, manage carts, place orders, and track deliveries from any custom storefront.

Quick Start

Authenticate with your API key and make your first call in minutes.

JavaScript
orders.js
1import LogisBase from '@logisbase/sdk';
2
3const logisbase = new LogisBase('flb_live_xxxx');
4
5// Create an order
6const order = await logisbase.orders.create({
7  payload: {
8    pickup: 'place_abc123',
9    dropoff: 'place_xyz789',
10    entities: [{ name: 'Package', weight: 2.5 }],
11  },
12  type: 'delivery',
13  scheduled_at: '2026-05-01T09:00:00Z',
14});
15
16// Track a driver's live location
17const location = await logisbase.drivers.getLocation('driver_xxx');
18console.log(location.coordinates); // [lng, lat]
PHP
orders.php
1use LogisBase\LogisBaseSDK;
2
3$logisbase = new LogisBaseSDK('flb_live_xxxx');
4
5// Create an order
6$order = $logisbase->orders->create([
7    'payload' => [
8        'pickup'  => 'place_abc123',
9        'dropoff' => 'place_xyz789',
10    ],
11    'type' => 'delivery',
12]);
13
14echo $order->tracking_number; // FB-000001
15
16// List all active drivers
17$drivers = $logisbase->drivers->findAll(['status' => 'active']);
Storefront SDK
storefront.js
1import Storefront from '@logisbase/storefront-sdk';
2
3const store = new Storefront('public_key_xxxx');
4
5// Browse product categories
6const categories = await store.categories.query();
7
8// Add to cart and checkout
9await store.cart.add('product_xxx', 1);
10
11const order = await store.cart.checkout({
12  customer: { name: 'Jane Doe', phone: '+1234567890' },
13  delivery_address: 'place_xyz789',
14  payment_method: 'cash',
15});

API Resources Covered

The JavaScript and PHP SDKs provide typed access to all core LogisBase API resources.

Orders
Drivers
Vehicles
Fleets
Places
Routes
Tracking
Webhooks

Code Access Included

All LogisBase SDKs are available with full code access. Inspect implementations, submit issues, and contribute improvements through the development workflow.

Full codebase available on GitHub
Issues and pull requests welcome
Enterprise licensing available
Semantic versioning

Start building today

Install an SDK, grab your API key from the Developer Console, and make your first API call in minutes.

SDKs & Libraries — JavaScript, PHP & Storefront | LogisBase | LogisBase