承接 tcgunel/omniship-kolaygelsin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tcgunel/omniship-kolaygelsin

最新稳定版本:v0.0.3

Composer 安装命令:

composer require tcgunel/omniship-kolaygelsin

包简介

KolayGelsin (Sendeo) carrier for Omniship shipping library

README 文档

README

KolayGelsin (Sendeo) carrier driver for Omniship.

Uses KolayGelsin's REST/JSON API.

Installation

composer require tcgunel/omniship-kolaygelsin

Quick Start

use Omniship\Omniship;
use Omniship\Common\Address;
use Omniship\Common\Package;

$carrier = Omniship::create('KolayGelsin');
$carrier->initialize([
    'apiToken' => 'your-api-token',
    'customerId' => 12345,
    'addressId' => 67890,
    'testMode' => true,
]);

Operations

Create Shipment

$response = $carrier->createShipment([
    'shipTo' => new Address(
        name: 'Mehmet Demir',
        street1: 'Kızılay Mah. 123. Sok. No:5',
        city: 'Ankara',           // Auto-resolved to plate code (6)
        district: 'Çankaya',
        postalCode: '06420',
        phone: '05559876543',
        email: 'mehmet@example.com',
    ),
    'packages' => [
        new Package(
            weight: 2.5,
            length: 30,
            width: 20,
            height: 15,
            description: 'Elektronik ürün',
        ),
    ],
    'customerSpecificCode' => 'ORDER-001',
    'packageType' => 2,   // 1=Document, 2=Package
])->send();

if ($response->isSuccessful()) {
    echo $response->getTrackingNumber();
    echo $response->getShipmentId();
}

Track Shipment

$response = $carrier->getTrackingStatus([
    'trackingNumber' => 'your-tracking-number',
])->send();

if ($response->isSuccessful()) {
    $info = $response->getTrackingInfo();
    echo $info->status->name;
    echo $info->trackingNumber;

    foreach ($info->events as $event) {
        echo $event->description;
        echo $event->occurredAt->format('Y-m-d H:i');
    }
}

Cancel Shipment

$response = $carrier->cancelShipment([
    'trackingNumber' => 'your-tracking-number',
])->send();

if ($response->isSuccessful() && $response->isCancelled()) {
    echo 'Shipment cancelled';
}

API Details

Endpoints

Environment URL
Test https://apiintg.klyglsn.com/api/request
Production https://api.kolaygelsin.com/api/request

Authentication

Uses Bearer token authentication via apiToken parameter.

Key Features

  • REST/JSON API: Modern JSON-based API
  • City plate code resolution: Automatically maps Turkish city names to plate codes (1-81)
  • Per-piece dimensions: Each shipment item has individual width/length/height/weight
  • Recipient types: Individual (1) or corporate (2) recipients
  • Address types: Residential (1) or commercial (2)
  • Name splitting: Full names automatically split into first/last name

API Methods

Endpoint Description
SaveIntegrationShipmentV2 Create shipment
GetIntegrationShipment Track shipment
CancelIntegrationShipment Cancel shipment

Testing

vendor/bin/pest

License

MIT

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固