PHPackages                             kittinan/thailandpost-track - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kittinan/thailandpost-track

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kittinan/thailandpost-track
===========================

Simple library for Thailandpost track ems with chrome headless

2.0.0(7y ago)195079[2 issues](https://github.com/kittinan/thailandpost-track/issues)MITPHPPHP &gt;=7.0CI failing

Since Apr 23Pushed 6y ago3 watchersCompare

[ Source](https://github.com/kittinan/thailandpost-track)[ Packagist](https://packagist.org/packages/kittinan/thailandpost-track)[ RSS](/packages/kittinan-thailandpost-track/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

[![#f03c15](https://camo.githubusercontent.com/0f961518a7ec2afddbe358d250696841250391fd10d08f87047ec0e63321be23/68747470733a2f2f706c616365686f6c642e69742f31352f6630336331352f3030303030303f746578743d2b)](https://camo.githubusercontent.com/0f961518a7ec2afddbe358d250696841250391fd10d08f87047ec0e63321be23/68747470733a2f2f706c616365686f6c642e69742f31352f6630336331352f3030303030303f746578743d2b) Not working (2019-09-20) [![#f03c15](https://camo.githubusercontent.com/0f961518a7ec2afddbe358d250696841250391fd10d08f87047ec0e63321be23/68747470733a2f2f706c616365686f6c642e69742f31352f6630336331352f3030303030303f746578743d2b)](https://camo.githubusercontent.com/0f961518a7ec2afddbe358d250696841250391fd10d08f87047ec0e63321be23/68747470733a2f2f706c616365686f6c642e69742f31352f6630336331352f3030303030303f746578743d2b)
==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#--not-working-2019-09-20--)

Thailand POST change their web page and open the API

[Issue #3](https://github.com/kittinan/thailandpost-track/issues/3)

thailandpost-track
==================

[](#thailandpost-track)

[![Build Status](https://camo.githubusercontent.com/b68f55303ee2ccdab315e7b3926798ea193273d3a2d411268eeedb0a0ba67c9b/68747470733a2f2f7472617669732d63692e6f72672f6b697474696e616e2f746861696c616e64706f73742d747261636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kittinan/thailandpost-track)[![License](https://camo.githubusercontent.com/ada67752a706c9d098630597e1011cbdf5b9c9b9cc12bfab0a955ca662d34f87/68747470733a2f2f706f7365722e707567782e6f72672f6b697474696e616e2f746861696c616e64706f73742d747261636b2f6c6963656e7365)](https://packagist.org/packages/kittinan/thailandpost-track)[![Latest Stable Version](https://camo.githubusercontent.com/8d4d5e0ca757e798ebb82a188888c3cc6d6ae304b5b840d5eae1ec00419c79b5/68747470733a2f2f706f7365722e707567782e6f72672f6b697474696e616e2f746861696c616e64706f73742d747261636b2f762f737461626c65)](https://packagist.org/packages/kittinan/thailandpost-track)

Simple library for thailandpost track EMS with Chrome headless

Requirement
-----------

[](#requirement)

- PHP 7.0+
- mbstring extension
- Chrome binary

Composer
--------

[](#composer)

Install the latest version with composer

```
composer require kittinan/thailandpost-track

```

This library on the Packagist.

Install Chrome
--------------

[](#install-chrome)

Install chromium-browser or Google Chrome

### Ubuntu/Debian

[](#ubuntudebian)

```
sudo apt-get install chromium-browser

```

Usage
-----

[](#usage)

```
//Do not forget to define Google Chrome or Chromium binary path

$chrome_bin = '/usr/bin/chromium-browser';
$track = new \KS\THAILANDPOST\Track($chrome_bin);
$ems = 'EN123456789TH';
$trackers = $track->getTracks($ems);

//Result return false or array of track status
Array
(
    [0] => Array
        (
            [date] => April 17, 2015  10:42:25
            [location] => PAK CHONG
            [description] => Accept
            [status] =>
        )

    [1] => Array
        (
            [date] => April 17, 2015  13:42:39
            [location] => PAK CHONG
            [description] => Items Into Container
            [status] =>
        )
)
```

You can enable English language.

```
//Do not forget to define Google Chrome or Chromium binary path

$chrome_bin = '/usr/bin/chromium-browser';
$track = new \KS\THAILANDPOST\Track($chrome_bin);

//For Thai language (default)
$track->enableThaiLanguage

//For English language
$track->enableEngLanguage();

$ems = 'EN123456789TH';
$trackers = $track->getTracks($ems);
```

License
=======

[](#license)

The MIT License (MIT)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~698 days

Total

3

Last Release

2646d ago

Major Versions

1.0.1 → 2.0.02019-02-19

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![kittinan](https://avatars.githubusercontent.com/u/144775?v=4)](https://github.com/kittinan "kittinan (18 commits)")[![k1337](https://avatars.githubusercontent.com/u/32435327?v=4)](https://github.com/k1337 "k1337 (1 commits)")[![ninearif](https://avatars.githubusercontent.com/u/3044249?v=4)](https://github.com/ninearif "ninearif (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kittinan-thailandpost-track/health.svg)

```
[![Health](https://phpackages.com/badges/kittinan-thailandpost-track/health.svg)](https://phpackages.com/packages/kittinan-thailandpost-track)
```

###  Alternatives

[crwlr/crawler

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)[backstage/laravel-og-image

Laravel package to generate dynamic Open Graph images

723.2k](/packages/backstage-laravel-og-image)[lochmueller/seocli

SEO CLI Tool

1113.4k](/packages/lochmueller-seocli)

PHPackages © 2026

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