PHPackages                             lojametastore/borzodelivery-php - 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. lojametastore/borzodelivery-php

ActiveLibrary[API Development](/categories/api)

lojametastore/borzodelivery-php
===============================

API Client to integration with Borzo Delivery

0202PHP

Since Jul 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lojametastore/borzodelivery-php)[ Packagist](https://packagist.org/packages/lojametastore/borzodelivery-php)[ RSS](/packages/lojametastore-borzodelivery-php/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP API Client to [Borzo Delivery](https://borzodelivery.com)
=============================================================

[](#php-api-client-to-borzo-delivery)

### API Documentation:

[](#api-documentation)

### Requeriments:

[](#requeriments)

- PHP &gt;= 7.4

Get started
-----------

[](#get-started)

- [Install](#Install)
- [Authentication](#Authentication)
- \[Available Methods\](#Available Methods)
    - \[Order price calculation\](#Order price calculation)
- \[Executing the unit tests\](#Executing the unit tests)
- [Exceptions](#Exceptions)

### Install

[](#install)

Using composer to install package:

`composer require lojametastore/borzodelivery-sdk-php`

### Authentication

[](#authentication)

See the example below about creating an instance with autentication:

```
use BorzoDelivery\Api\Borzo;

$borzo = new Borzo('SECRET_AUTH_TOKEN');
```

### Available Methods

[](#available-methods)

#### Order price calculation

[](#order-price-calculation)

The calculation price method from the order is used to simulate the delivery price between one or more points. All the available request parameters can be seen in

```
$points = new Points();

$points->add([
    "address"               => 'Address 1',
    "contact_person"        => new ContactPerson([
        'name'  => 'Jem',
        'phone' => '+1-202-555-0171'
    ]),
    "is_order_payment_here" => true,
]);

$points->add([
    "address"               =>'Address 2',
    "contact_person"        => new ContactPerson([
        'name'  => 'Polly',
        'phone' => '+1-202-555-0172'
    ]),
    "client_order_id"       => $this->faker()->randomDigit(),
    "is_order_payment_here" => false,
]);

$orderRequest = new Order([
    "type"             => Order::ORDER_TYPE_STANDARD,
    "matter"           => 'Buys',
    "vehicle_type_id"  => Order::VEHICLE_TYPE_MOTORBIKE,
    "total_weight_kg"  => 5,
    "insurance_amount" => 150,
    "points"           => $points,
]);

$borzo->priceCalculation($order);
```

### Executing the unit tests

[](#executing-the-unit-tests)

To execute the unit tests, before you need set an environment variable named `SECRET_AUTH_TOKEN`

### Exceptions

[](#exceptions)

When a request returns any failure it will trigger an exception with the class `BorzoDelivery\Exceptions\ApiException`. You can simply catch this exception with the below example:

```
use BorzoDelivery\Exceptions\ApiException;

try{

    $borzo->priceCalculation($order);

} catch (ApiException $apiException) {
    $errors = $apiException->getErrors();
    $warnings = $apiException->getWarnings();
    $parametersWarnings = $apiException->getparametersWarnings();
}
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3984760?v=4)[Kallef Alexandre](/maintainers/prhost)[@prhost](https://github.com/prhost)

---

Tags

api-clientborzoclient-librarydeliveryphpsdk

### Embed Badge

![Health badge](/badges/lojametastore-borzodelivery-php/health.svg)

```
[![Health](https://phpackages.com/badges/lojametastore-borzodelivery-php/health.svg)](https://phpackages.com/packages/lojametastore-borzodelivery-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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