PHPackages                             victorycodedev/shipday - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. victorycodedev/shipday

ActiveLibrary[API Development](/categories/api)

victorycodedev/shipday
======================

Shipday PHP sdk provides easier access to Shipday API's from PHP applications and scripts.

1.1.0(2y ago)2110↓100%MITPHPPHP ^8.1|^8.2

Since Apr 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/victorycodedev/shipday)[ Packagist](https://packagist.org/packages/victorycodedev/shipday)[ Docs](https://github.com/victorycodedev/shipday)[ RSS](/packages/victorycodedev-shipday/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Shipday PHP SDK
===============

[](#shipday-php-sdk)

Shipday PHP sdk provides easier access to Shipday API's from PHP applications and scripts.

Installation
------------

[](#installation)

Use the package manager composer to install this package.

```
composer require victorycodedev/shipday
```

Usage
-----

[](#usage)

```
use Victorycodedev\Shipday\Delivery;

 $delivery = new Delivery($apiKey);

 // Sign up on https://www.shipday.com to grab your API key.
```

Delivery Orders
---------------

[](#delivery-orders)

Insert Order

```
//INSERT AN ORDER
 $orderDetails = [
        "orderNumber" => "99qT5A",
        "customerName" => "Mr. Jhon Mason",
        "customerAddress" => "556 Crestlake Dr, San Francisco, CA 94132, USA",
        "customerEmail" => "jhonMason@gmail.com",
        "customerPhoneNumber" => "+14152392212",
        "restaurantName" => "Popeyes Louisiana Kitchen",
        "restaurantAddress" => "890 Geneva Ave, San Francisco, CA 94112, United States",
        "restaurantPhoneNumber" => "+14152392013",
        "expectedDeliveryDate" => "2021-06-03",
        "expectedPickupTime" => "17:45:00",
        "expectedDeliveryTime" => "19:22:00",
        "pickupLatitude" => 41.53867,
        "pickupLongitude" => -72.0827,
        "deliveryLatitude" => 41.53867,
        "deliveryLongitude" => -72.0827,
        "tips" => 2.5,
        "tax" => 1.5,
        "discountAmount" => 1.5,
        "deliveryFee" => 3,
        "totalOrderCost" => 13.47,
        "deliveryInstruction" => "fast",
        "orderSource" => "Seamless",
        "additionalId" => "4532",
        "clientRestaurantId" => 12,
        "paymentMethod" => "credit_card",
        "creditCardType" => "visa",
        "creditCardId" => 1234
    ];

 $order = $delivery->insertOrder($orderDetails);
```

Edit/Update an Order

```
$orderId = 002002;

$details = [
    'orderId' => $orderId,
    ....
];

$response = $delivery->updateOrder($orderId, $details);
```

Retrieve Active Orders

```
$orders = $delivery->getActiveOrders();
```

Retrieve Order Details

```
$order = $delivery->getOrderDetails('test order 1')[0];
```

Orders Query

```
$orders = $delivery->queryOrder([
    ...
]);
```

Delete Order

```
$delivery->deleteOrder('ENTER ORDER ID');
```

Assign Order to Driver

```
$delivery->assignOrderToDriver('ENTER ORDER ID', 'ENTER CARRIER ID');
```

Order Status Update

```
$response = $delivery->updateOrderStatus('ENTER ORDER ID', [
   'status' => 'STARTED',
]);
```

Order Ready to Pickup

```
$delivery->readyToPickup('ENTER ORDER ID');
```

Add a carrier/driver

```
$driver = $delivery->addDriver([...]);
```

Retrieve Carriers

```
$drivers = $delivery->drivers();
```

Retrieve a single Carrier

```
$driver = $delivery->getDriverDetails('Enter carrierId');
```

Delete a carrier

```
$response = $delivery->deleteDriver('CARRIER ID');
```

On-Demand Delivery
------------------

[](#on-demand-delivery)

```
use Victorycodedev\Shipday\OnDemandDelivery;

$ondemandDelivery = new OnDemandDelivery($apiKey);

 // Sign up on https://www.shipday.com to grab your API key.
```

Services : Get a list of 3rd party delivery service providers available

```
$response = $ondemandDelivery->services();
```

Estimate: Get estimate from 3rd party service providers (Service availability, Price, Wait time etc.)

```
$response = $ondemandDelivery->estimate('ORDER ID');
```

Assign: Assign to a specific 3rd party delivery service provider. Usually, after getting an estimate.

```
$response = $ondemandDelivery->assign([
    //... KEY VALUE PAIR PAYLOAD
]);
```

Details: Get order and status details for an assigned order to 3rd party service provider.

```
$response = $ondemandDelivery->getDetails('ORDER ID');
```

Cancel an assigned order

```
$response = $ondemandDelivery->cancel('ORDER ID');
```

Availaiblity: Get availability information

```
$response = $ondemandDelivery->availability([
     //... KEY VALUE PAIR PAYLOAD
]);
```

API Reference
-------------

[](#api-reference)

All API references can be found on shipday documentation website.

Security
--------

[](#security)

If you discover any security related issues, please open an issue.

How can I thank you?
--------------------

[](#how-can-i-thank-you)

Why not star the github repo? I'd love the attention! you can share the link for this repository on Twitter?

Don't forget to [follow me on twitter!](https://twitter.com/EfekpoguaVicto4)

Thanks! Efekpogua Victory.

License
-------

[](#license)

[MIT](./LICENSE.md)

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Total

3

Last Release

1049d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a9121c2abdf0dfbe4cad781dbfd14ac38b274fb12b1e247825c2c36f54739c2?d=identicon)[victorycodedev](/maintainers/victorycodedev)

---

Top Contributors

[![victorycodedev](https://avatars.githubusercontent.com/u/45511695?v=4)](https://github.com/victorycodedev "victorycodedev (11 commits)")

---

Tags

MetaApivictorycodedevshipdayshipday-php-sdk

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/victorycodedev-shipday/health.svg)

```
[![Health](https://phpackages.com/badges/victorycodedev-shipday/health.svg)](https://phpackages.com/packages/victorycodedev-shipday)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
