PHPackages                             aytaceminoglu/sendcloud-php-client - 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. aytaceminoglu/sendcloud-php-client

ActiveLibrary[API Development](/categories/api)

aytaceminoglu/sendcloud-php-client
==================================

A PHP Client for the SendCloud API

v2.6.0(5y ago)023MITPHPPHP &gt;=7.2.0

Since Oct 25Pushed 5y agoCompare

[ Source](https://github.com/aytaceminoglu/sendcloud-php-client)[ Packagist](https://packagist.org/packages/aytaceminoglu/sendcloud-php-client)[ Docs](http://github.com/picqer/sendcloud-php-client)[ RSS](/packages/aytaceminoglu-sendcloud-php-client/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (35)Used By (0)

Sendcloud PHP API Client
========================

[](#sendcloud-php-api-client)

An unofficial client for the Sendcloud API. More info about Sendcloud on . Below are some examples on the usage of this client.

Full docs of the Sendcloud API can be found on

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

[](#installation)

This project can easily be installed through Composer.

```
composer require picqer/sendcloud-php-client

```

Set-up connection
-----------------

[](#set-up-connection)

Prepare the client for connecting to Sendcloud with your API key and API secret. (Optionally you can send your Partner id as 3rd param.)

```
$connection = new \Picqer\Carriers\SendCloud\Connection('apikey', 'apisecret');
$sendcloudClient = new \Picqer\Carriers\SendCloud\SendCloud($connection);
```

Get all parcels
---------------

[](#get-all-parcels)

Returns an array of Parcel objects

```
$parcels = $sendcloudClient->parcels()->all();
```

Get a single parcel
-------------------

[](#get-a-single-parcel)

Returns a Parcel object

```
$parcel = $sendcloudClient->parcels()->find(2342);
```

Create a new parcel
-------------------

[](#create-a-new-parcel)

```
$parcel = $sendcloudClient->parcels();

$parcel->shipment = 10; // Shipping method, get possibilities from $sendCloud->shippingMethods()->all()

$parcel->name = 'John Smith';
$parcel->company_name = 'ACME';
$parcel->address = 'Wellingtonstreet 25';
$parcel->city = 'Wellington';
$parcel->postal_code = '3423 DD';
$parcel->country = 'NL';
$parcel->order_number = 'ORDER2014-52321';

$parcel->requestShipment = true; // Specifically needed to create a shipment after adding the parcel

$parcel->save();
```

Getting label from parcel
-------------------------

[](#getting-label-from-parcel)

```
$labelUrl = $parcel->getPrimaryLabelUrl();

$documentDownloader = new \Picqer\Carriers\SendCloud\DocumentDownloader($connection);
$labelContents = $documentDownloader->getDocument($labelUrl, 'pdf');
```

Exceptions
----------

[](#exceptions)

Actions to the API may cause an Exception to be thrown in case something went wrong

```
try {
    $parcel->save();
} catch (SendCloudApiException $e) {
    throw new Exception($e->getMessage());
}
```

Create an international parcel
------------------------------

[](#create-an-international-parcel)

```
$parcel = $sendcloudClient->parcels();

$parcel->shipment = 9; // Shipping method, get possibilities from $sendCloud->shippingMethods()->all()

$parcel->name = 'John Smith';
$parcel->company_name = 'ACME';
$parcel->address = 'Wellingtonstreet 25';
$parcel->city = 'Wellington';
$parcel->postal_code = '3423 DD';
$parcel->country = 'CH';
$parcel->order_number = 'ORDER2014-52321';
$parcel->weight = 20.4;

// For international shipments
$parcel->customs_invoice_nr = 'ORD9923882';
$parcel->customs_shipment_type = 2; // Commercial goods
$parcel->parcel_items = [
    [
        'description' => 'Cork',
        'quantity' => 2,
        'weight' => 10.2,
        'value' => 12.93,
        'hs_code' => '992783',
        'origin_country' => 'CN',
    ]
];

$parcel->requestShipment = true; // Specifically needed to create a shipment after adding the parcel

$parcel->save();
```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~134 days

Total

31

Last Release

2040d ago

Major Versions

v1.1.0 → v2.0.02015-06-18

PHP version history (4 changes)v1.0.0PHP &gt;=5.4.0

v2.0.0PHP &gt;=5.5.0

v2.3.0PHP &gt;=5.6.0

v2.5.0PHP &gt;=7.2.0

### Community

Maintainers

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

---

Top Contributors

[![casperbakker](https://avatars.githubusercontent.com/u/886975?v=4)](https://github.com/casperbakker "casperbakker (27 commits)")[![stephangroen](https://avatars.githubusercontent.com/u/1607643?v=4)](https://github.com/stephangroen "stephangroen (23 commits)")[![jschram](https://avatars.githubusercontent.com/u/10851379?v=4)](https://github.com/jschram "jschram (9 commits)")[![kleiram](https://avatars.githubusercontent.com/u/323498?v=4)](https://github.com/kleiram "kleiram (5 commits)")[![lorro](https://avatars.githubusercontent.com/u/977617?v=4)](https://github.com/lorro "lorro (3 commits)")[![keesschepers](https://avatars.githubusercontent.com/u/915930?v=4)](https://github.com/keesschepers "keesschepers (2 commits)")[![aytaceminoglu](https://avatars.githubusercontent.com/u/35230680?v=4)](https://github.com/aytaceminoglu "aytaceminoglu (2 commits)")[![annajeanineee](https://avatars.githubusercontent.com/u/218073740?v=4)](https://github.com/annajeanineee "annajeanineee (2 commits)")[![hxnk](https://avatars.githubusercontent.com/u/1008127?v=4)](https://github.com/hxnk "hxnk (1 commits)")[![cwdt](https://avatars.githubusercontent.com/u/9107601?v=4)](https://github.com/cwdt "cwdt (1 commits)")[![obrunsmann](https://avatars.githubusercontent.com/u/763812?v=4)](https://github.com/obrunsmann "obrunsmann (1 commits)")[![rubentebogt](https://avatars.githubusercontent.com/u/8817394?v=4)](https://github.com/rubentebogt "rubentebogt (1 commits)")[![smetje](https://avatars.githubusercontent.com/u/17066448?v=4)](https://github.com/smetje "smetje (1 commits)")[![axlon](https://avatars.githubusercontent.com/u/3661474?v=4)](https://github.com/axlon "axlon (1 commits)")

---

Tags

phpapiclientshipmentssendcloudparcels

### Embed Badge

![Health badge](/badges/aytaceminoglu-sendcloud-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/aytaceminoglu-sendcloud-php-client/health.svg)](https://phpackages.com/packages/aytaceminoglu-sendcloud-php-client)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[picqer/sendcloud-php-client

A PHP Client for the SendCloud API

45400.4k1](/packages/picqer-sendcloud-php-client)[kunalvarma05/dropbox-php-sdk

Dropbox PHP API V2 SDK (Unofficial)

3633.0M18](/packages/kunalvarma05-dropbox-php-sdk)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[jouwweb/sendcloud

Provides a client to interact with the Sendcloud API in an object-oriented way.

16256.9k1](/packages/jouwweb-sendcloud)

PHPackages © 2026

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