PHPackages                             inkr/smartpost-apiclient - 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. inkr/smartpost-apiclient

ActiveLibrary[API Development](/categories/api)

inkr/smartpost-apiclient
========================

Itella SmartPost API client

1.1.2(1y ago)0291MITPHPPHP ^7.3 || ^8.0

Since Apr 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/inkr-xx/smartpost-apiclient)[ Packagist](https://packagist.org/packages/inkr/smartpost-apiclient)[ RSS](/packages/inkr-smartpost-apiclient/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Itella SmartPost API client
===========================

[](#itella-smartpost-api-client)

How to install
--------------

[](#how-to-install)

```
composer require inkr/smartpost-apiclient

```

How to use
----------

[](#how-to-use)

Initialize client

```
$client = new SmartPost\SmartPostApiClient((new SmartPost\SmartPostApiClientConf())
    ->setApiUrl('https://gateway.posti.fi/smartpost/api/ext/v1/')
    ->setAuthKey('apikey')
);
```

List places

```
foreach ($client->getPlaces('EE') as $place)
{
    print_r($place);
}
```

Create a new order

```
$client->createOrders([
(new SmartPost\Model\Order\OrderCreateRequest())
    ->setReference('123')
    ->setContent('new shipment')
    ->setSource((new OrderCreateRequestSource())->setCountry('EE'))
    ->setRecipient((new SmartPost\Model\Order\OrderCreateRequestRecipient())
        ->setName('John Smith')
        ->setPhone('55667788')
    )
    ->setDestination((new SmartPost\Model\Order\OrderCreateRequestDestination())
        ->setCountry('EE')
        ->setPlaceId('01007225')
    )
]);
```

Get tracking info

```
$client->getTracking(['barcode1', 'barcode2']);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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 ~117 days

Total

5

Last Release

663d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83608f29ceb1707b510a300671618dcde460ea0f7bc6e32f6195c38f4bc26d5a?d=identicon)[inkr-xx](/maintainers/inkr-xx)

---

Top Contributors

[![inkr-xx](https://avatars.githubusercontent.com/u/2520220?v=4)](https://github.com/inkr-xx "inkr-xx (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/inkr-smartpost-apiclient/health.svg)

```
[![Health](https://phpackages.com/badges/inkr-smartpost-apiclient/health.svg)](https://phpackages.com/packages/inkr-smartpost-apiclient)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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