PHPackages                             gdinko/acs - 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. gdinko/acs

ActiveLibrary[API Development](/categories/api)

gdinko/acs
==========

Laravel ACS API Wrapper

v1.0.2(3y ago)013MITPHPPHP ^7.4|^8.0

Since May 14Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (11)Versions (4)Used By (0)

Laravel ACS API Wrapper
=======================

[](#laravel-acs-api-wrapper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4a43868a396c370980c5d5f207f22c8bd748898442c58ac87e193ba8108c7ecd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6764696e6b6f2f6163732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gdinko/acs)[![GitHub Tests Action Status](https://camo.githubusercontent.com/38fb34711848d9197769db9aaca1a08b489d27e0b12d5ecea97959ca40fdfeec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6764696e6b6f2f6163732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/gdinko/acs/actions?query=workflow%3Arun-tests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/debb9b7ab6f2b52eaad7e2bdf1d2b60647abf1d15002148da98fb3f5570d171f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6764696e6b6f2f6163732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/gdinko/acs/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/2723b67216158dbcfd4985f7abc533c07c08bba1869ec4b60d3e3619bb79a9a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6764696e6b6f2f6163732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gdinko/acs)

[ACS JSON API Documentation](https://acscourier-media.azureedge.net/production-media/1leezfnu/new_acs_web_services-english.pdf?v=1)

[ACS JSON API Swagger UI](https://webservices.acscourier.net/ACSRestServices/swagger/ui/index)

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

[](#installation)

You can install the package via composer:

```
composer require gdinko/acs
```

If you plan to use database for storing nomenclatures:

```
php artisan migrate
```

If you need to export configuration file:

```
php artisan vendor:publish --tag=acs-config
```

If you need to export migrations:

```
php artisan vendor:publish --tag=acs-migrations
```

If you need to export models:

```
php artisan vendor:publish --tag=acs-models
```

If you need to export commands:

```
php artisan vendor:publish --tag=acs-commands
```

Configuration
-------------

[](#configuration)

```
ACS_API_KEY=
ACS_COMPANY_ID=
ACS_COMPANY_PASSWORD=
ACS_USER_ID=
ACS_USER_PASSWORD=
ACS_BILLING_CODE=
ACS_API_BASE_URL= #default=https://webservices.acscourier.net/ACSRestServices/api/ACSAutoRest/
ACS_API_TIMEOUT= #default=5
```

Usage
-----

[](#usage)

Runtime Setup

```
Acs::setTimeout(99);
```

```
/**
 * You can call all methods from the API like this , there is no need
 * to pass company data every time. The data is injected automaticaly
 * on every request
 **/

dd(Acs::ACS_Address_Validation([
    'Address' => 'Address ...'
]));

dd(Acs::ACS_Trackingsummary([
    'Voucher_No' => '999999999'
]));
```

Commands

```
#get acs api status (use -h to view options)
php artisan acs:api-status

#track parcels (use -h to view options)
php artisan acs:track
```

Models

```
CarrierAcsTracking
CarrierAcsApiStatus
```

Events

```
CarrierAcsTrackingEvent
```

Parcels Tracking
----------------

[](#parcels-tracking)

1. Subscribe to tracking event, you will recieve last tracking info, if tracking command is schduled

```
Event::listen(function (CarrierAcsTrackingEvent $event) {
    echo $event->account;
    dd($event->tracking);
});
```

2. Before use of tracking command you need to create your own command and define setUp method

```
php artisan make:command TrackCarrierAcs
```

3. In app/Console/Commands/TrackCarrierAcs define your logic for parcels to be tracked

```
use Gdinko\Acs\Commands\TrackCarrierAcsBase;

class TrackCarrierAcsSetup extends TrackCarrierAcsBase
{
    protected function setup()
    {
        //define parcel selection logic here
        // $this->parcels = [];
    }
}
```

4. Use the command

```
php artisan acs:track
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Dinko Georgiev](https://github.com/gdinko)
- [silabg.com](https://www.silabg.com/) ❤️
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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 ~6 days

Total

3

Last Release

1451d ago

### Community

Maintainers

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

---

Top Contributors

[![gdinko](https://avatars.githubusercontent.com/u/2735905?v=4)](https://github.com/gdinko "gdinko (10 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelgdinkoACSacs laravel

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/gdinko-acs/health.svg)

```
[![Health](https://phpackages.com/badges/gdinko-acs/health.svg)](https://phpackages.com/packages/gdinko-acs)
```

###  Alternatives

[irazasyed/telegram-bot-sdk

The Unofficial Telegram Bot API PHP SDK

3.3k4.5M84](/packages/irazasyed-telegram-bot-sdk)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[dcblogdev/laravel-xero

A Laravel Xero package

53129.1k1](/packages/dcblogdev-laravel-xero)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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