PHPackages                             seniorprogramming/postisgate - 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. seniorprogramming/postisgate

ActiveLibrary[API Development](/categories/api)

seniorprogramming/postisgate
============================

Postis API Client

1.0(6y ago)025MITPHPPHP &gt;=7.1.3

Since Jul 17Pushed 6y agoCompare

[ Source](https://github.com/spgwebdev/postisgate)[ Packagist](https://packagist.org/packages/seniorprogramming/postisgate)[ RSS](/packages/seniorprogramming-postisgate/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (7)Used By (0)

PostisGate API Client
---------------------

[](#postisgate-api-client)

A simple PostisGate implementation for Laravel.

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

[](#installation)

Install the package through [Composer](http://getcomposer.org/).

Run the Composer require command from the Terminal:

```
composer require seniorprogramming/postisgate

```

Now all you have to do is add the service provider of the package and alias the package. To do this open your `config/app.php` file.

Add a new line to the `providers` array:

```
SeniorProgramming\PostisGate\Providers\ApiServiceProvider::class,

```

And optionally add a new line to the `aliases` array:

```
'PostisGate' => SeniorProgramming\PostisGate\Facades\PostisGate::class,

```

Important, add in .env PostisGate credentials:

```
POSTISGATE_USERNAME=
POSTISGATE_PASSWORD=
POSTISGATE_API=
```

And in `config/filesystems.php`

```
    'postisgate' => [
        'driver' => 'local',
        'root' => storage_path('postisgate'),
    ],
```

Now you're ready to start using the PostisGate API Client in your application.

Overview
--------

[](#overview)

Look at one of the following topics to learn more about PostisGate API Clien

- [Usage](#usage)
- [Exceptions](#exceptions)
- [Example](#example)

Usage
-----

[](#usage)

The PostisGate API Client gives you the following methods to use:

### Login()

[](#login)

Retrieves the token for authentication when calling methods.

```
PostisGate::login()
```

### CreateShipment()

[](#createshipment)

Creates the shipment for the client order. The login command is not required. It does it automatically.

```
PostisGate::createShipment()
```

**The `createShipment()` method will return an array of objects with: clientOrderDate, createdDate, sendType, productCategory, courierId, shipmentId, shipmentParcels\[parcelReferenceId, parcelType, itemCode, itemDescription1, barCode\], clientOrderId.**

### GetShipmentLabel()

[](#getshipmentlabel)

Retrieve the AWB to a pdf file. The login command is not required. It does it automatically.

```
PostisGate::getShipmentLabel()
```

**The `getShipmentLabel()` method will return TRUE.**

Exceptions
----------

[](#exceptions)

The PostisGate package will throw exceptions if something goes wrong. This way it's easier to debug your code using the PostisGate package or to handle the error based on the type of exceptions. The PostisGate packages can throw the following exceptions:

Exception*PostisGateInstanceException**PostisGateInvalidParamException**PostisGateTokenInvalidException**PostisGateUnknownModelException*Example
-------

[](#example)

**Login()**

```
PostisGate::login(['name'=>'your_username', 'password'=>'your_password'])
```

**CreateShipment()**

```
PostisGate::createShipment([
    "clientId" => "your_client_id",
    "clientOrderDate" => "2018-04-12 07:03:03",
    "clientOrderId" => "0005",
    "paymentType" => "CASH",
    "productCategory" => "Standard Delivery",
    "recipientLocation" => [
        "addressText" => "Cal. Floreasca 40",
        "contactPerson" => "Gheorghe Ion",
        "country" => "Romania",
        "county" => "Bucuresti",
        "locality" => "Bucuresti",
        "locationId" => "1",
        "name" => "Georghe Ion",
        "phoneNumber" => "0700000000",
        "postalCode" => "123456",
    ],
    "sendType" => "FORWARD",
    "senderLocation" => [
        "addressText" => "Calea Bucuresti 22, Tunari, Ilfov",
        "buildingNumber" => "22",
        "contactPerson" => "depozit",
        "country" => "Romania",
        "county" => "Ilfov",
        "locality" => "Tunari",
        "locationId" => "149",
        "name" => "Depozit central",
        "phoneNumber" => "0212210000",
        "postalCode" => "012345",
        "streetName" => "Calea Bucuresti",
    ],
    "shipmentParcels" => [[
        "itemCode" => "AB1564",
        "itemDescription1" => "product_name",
        "itemUOMCode" => "BUC",
        "parcelBrutWeight" => 20,
        "parcelDeclaredValue" => 0,
        "parcelReferenceId" => "PRE0005",
        "parcelType" => "PACKAGE",
    ]],
    "shipmentPayer" => "SENDER",
    "shipmentReference" => "SRE0005",
    "sourceChannel" => "ONLINE",
])
```

**GetShipmentLabel()**

```
PostisGate::getShipmentLabel([
    'shipmentId' => '1234567890',
    'filename' => '0005_1234567890.pdf'
])
```

For more information use the PostisgGate API documentation.

If you want to create more operations, create a class in the `src/Operations` folder just like the existing one and call through:

```
PostisGate::the_name_of_the_class([parameters])
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2493d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e840a031ae80c2b4c8c99a9618dd64e7bbba6206d04b80a13c20a255109c35c4?d=identicon)[spgwebdev](/maintainers/spgwebdev)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seniorprogramming-postisgate/health.svg)

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[echolabsdev/prism

A powerful Laravel package for integrating Large Language Models (LLMs) into your applications.

2.3k388.3k10](/packages/echolabsdev-prism)[allyans3/steam-market-api-v2

Steam Market API v2

1937.3k](/packages/allyans3-steam-market-api-v2)[sburina/laravel-whmcs-up

WHMCS API client and user provider for Laravel

271.3k](/packages/sburina-laravel-whmcs-up)

PHPackages © 2026

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