PHPackages                             muharremyildirim/kolaygelsin-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. [HTTP &amp; Networking](/categories/http)
4. /
5. muharremyildirim/kolaygelsin-php-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

muharremyildirim/kolaygelsin-php-client
=======================================

PHP client for KolayGelsin.com cargo.

v1.0.0(3y ago)04MITPHP

Since Aug 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Muharrem-Yildirim/kolaygelsin-php-client)[ Packagist](https://packagist.org/packages/muharremyildirim/kolaygelsin-php-client)[ RSS](/packages/muharremyildirim-kolaygelsin-php-client/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

kolaygelsin-php-client
======================

[](#kolaygelsin-php-client)

[KolayGelsin](https://kolaygelsin.com/) cargo client for PHP. Available on [packagist.org](https://packagist.org/packages/muharremyildirim/kolaygelsin-php-client).

**This package is created and maintained by me, which means it is not official package.**

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

[](#installation)

The package is available via composer:

```
$ composer require muharremyildirim/kolaygelsin-php-client
```

### Dependencies

[](#dependencies)

- [Guzzle](https://packagist.org/packages/guzzlehttp/guzzle)
- [PHPUnit](https://packagist.org/packages/phpunit/phpunit)

Basic Usage
-----------

[](#basic-usage)

For more examples please check out `/examples` (@@todo) folder.

### Create a new Shipment

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

```
$client = new Client('PUT_YOUR_TOKEN_HERE');

$shipment = new IntegrationShipment($client);

$shipment->ShipmentItemList = [
    [
        'Width' => 10,
        'Length' => 20,
        'Height' => 30,
        'Weight' => 1,
        'ContentText' => 'Detay',
        'DeliveryNote' => 'Müşteri İrsaliye Numarası',
        'DeliveryNoteDate' => '2018-07-19T00:00:00+03:00',
        'HasCommercialValue' => true,
        'CustomerBarcode' => 'ShpItem1',
        'CustomerTrackingId' => 'ABC123456'
    ],
    [
        'Width' => 10,
        'Length' => 20,
        'Height' => 30,
        'Weight' => 1,
        'ContentText' => 'Detay',
        'DeliveryNote' => 'Müşteri İrsaliye Numarası',
        'DeliveryNoteDate' => '2018-07-19T00:00:00+03:00',
        'HasCommercialValue' => true,
        'CustomerBarcode' => 'ShpItem2',
        'CustomerTrackingId' => 'ABC123456'
    ]
];
$shipment->Recipient =  [
    'RecipientId' => 45
];
$shipment->SenderCustomer =  [
    'Address' => [
        'AddressId' => 4389
    ],
    'CustomerId' => 2124
];
$shipment->PayingParty = 1;
$shipment->PackageType = 2;
$shipment->OnlyDeliverToRecipient = true;
$shipment->CustomerSpecificCode = 'Shp1';

$response = $shipment->post();

var_dump($response,$response->Payload);
```

### Example Response:

[](#example-response)

```
^ MuharremYildirim\KolayGelsin\Models\Response {#4 ▼
  +"Model": "MuharremYildirim\KolayGelsin\Models\IntegrationShipment"
  +"Source": ""
  +"Target": "APIReadQ"
  +"Intent": null
  +"Tag": null
  +"JobOwner": "APIReadQ"
  +"JobId": "ESUBEBETA-2022-08-06-08-39-03-28725.886"
  +"Payload": array:4 [▼
    "ShipmentId" => 70000
    "CustomerSpecificCode" => "Shp1"
    "ShipmentItemLabelList" => array:2 [▶]
    "ShipmentTrackingLink" => "https://esubebeta.klyglsn.com/shipment"
  ]
  +"Username": "-"
  +"ResultCode": 200.0
  +"ResultMessage": ""
  +"StepCount": 0
  +"Channel": "Integration"
  +"Language": null
  +"Location": null
}
```

### Add a new Recipient

[](#add-a-new-recipient)

```
$client = new Client('PUT_YOUR_TOKEN_HERE');

$recipient = new Recipient($client);

$recipient->RecipientType = 2;
$recipient->Address =
    array(
        'CityId' => 34,
        'TownName' => 'Sancaktepe',
        'AddressTypeId' => 2,
        'AddressText' => 'Ekol Lojistik İmam Hatip Cd. Eyüp Sultan Mah. Sancaktepe İstanbul',
        'BuildingNumber' => 1,
        'FloorNumber' => 1,
        'DoorNumber' => 1,
        'BuldingName' => 'Ekol',
        'PostalCode' => '34500',
        'CompanyTitle' => 'Ekol Lojistik',
        'CompanyDepartment' => 'Kargo',
        'Direction' => 'Ekol lojistik lavinya tesisi samandıra',
    );
$recipient->RecipientTaxIdentityNumber = '1234567891';
$recipient->Email = 'ekol@ekol.com';
$recipient->RecipientTitle = 'Ekol Lojistik AŞ';
$recipient->Gsm = '123457890';
$recipient->OnlyDeliverToRecipient = false;
$recipient->SaveOutOfCoverage = false;

var_dump($recipient->post());
```

### Testing

[](#testing)

This package uses [PHPUnit](https://packagist.org/packages/phpunit/phpunit) library for unit testing. You can do run tests with these commands:

For Unix:

```
export KOLAYGELSIN_API_KEY='YOUR_API_KEY' && ./vendor/bin/phpunit
```

For Windows:

```
set KOLAYGELSIN_API_KEY='YOUR_API_KEY' && ./vendor/bin/phpunit
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1427d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47f48436edaa79e32a592f24bc3a7abf2d5c528f677cac42d0ae566214808c29?d=identicon)[muharremyildirim](/maintainers/muharremyildirim)

---

Top Contributors

[![Muharrem-Yildirim](https://avatars.githubusercontent.com/u/31191665?v=4)](https://github.com/Muharrem-Yildirim "Muharrem-Yildirim (17 commits)")

---

Tags

cargokolaygelsin.com

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/muharremyildirim-kolaygelsin-php-client/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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