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 1mo 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 19% 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

1375d 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

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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