TransEdge
Official Client Libraries

SDKs & Libraries

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

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

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

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

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

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

Purpose-built JavaScript SDK for TransEdge 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 Fleetbase from '@fleetbase/sdk';
2
3const fleetbase = new Fleetbase('flb_live_xxxx');
4
5// Create an order
6const order = await fleetbase.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 fleetbase.drivers.getLocation('driver_xxx');
18console.log(location.coordinates); // [lng, lat]
PHP
orders.php
1use TransEdge\FleetbaseSDK;
2
3$fleetbase = new FleetbaseSDK('flb_live_xxxx');
4
5// Create an order
6$order = $fleetbase->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 = $fleetbase->drivers->findAll(['status' => 'active']);
Storefront SDK
storefront.js
1import Storefront from '@fleetbase/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 TransEdge API resources.

Orders
Drivers
Vehicles
Fleets
Places
Routes
Tracking
Webhooks

Official SDKs

All TransEdge SDKs are published to the public package registries and licensed under AGPL-3.0. Install them with your usual package manager.

Published to npm and Packagist
Typed, documented interfaces
AGPL-3.0 licensed
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 | TransEdge | TransEdge