PHPackages                             javaabu/customs-api - 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. javaabu/customs-api

ActiveLibrary[API Development](/categories/api)

javaabu/customs-api
===================

PHP SDK for interacting with the Maldives Customs Service API

v0.5.0(4mo ago)069MITPHPPHP ^7.2 || ^8.0CI passing

Since Jun 28Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/Javaabu/customs-api)[ Packagist](https://packagist.org/packages/javaabu/customs-api)[ Docs](https://github.com/Javaabu/customs-api)[ RSS](/packages/javaabu-customs-api/feed)WikiDiscussions main Synced today

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

Customs API
===========

[](#customs-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3fd42ba22dfbfd11752d80601df1eab90d8524780395aff3f07136d134d0c8d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6176616162752f637573746f6d732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/javaabu/customs-api)[![Test Status](../../actions/workflows/run-tests.yml/badge.svg)](../../actions/workflows/run-tests.yml)[![Code Coverage Badge](./.github/coverage.svg)](./.github/coverage.svg)[![Total Downloads](https://camo.githubusercontent.com/d8e0357e0af8b2e8ab123f996ff222984eff414dc68610f4751f2e676737a34e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6176616162752f637573746f6d732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/javaabu/customs-api)

PHP SDK for interacting with the Maldives [Customs Service API](https://api.customs.gov.mv/)

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the Customs API credentials](#setting-up-the-customs-api-credentials)
- [Usage](#usage)
    - [Available Methods](#available-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)
- [Disclaimer](#disclaimer)

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

[](#installation)

You can install the package via composer:

```
composer require javaabu/customs-api
```

**Laravel 5.5** and above uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

After updating composer, add the ServiceProvider to the providers array in config/app.php

```
// config/app.php
'providers' => [
    ...
    Javaabu\Customs\CustomsServiceProvider::class,
],
```

Optionally add the facade.

```
// config/app.php
'aliases' => [
    ...
    'Customs' => Javaabu\Customs\Facades\Customs::class,
],
```

### Setting up the Customs API credentials

[](#setting-up-the-customs-api-credentials)

Add your Customs Username, Password, and Url (optional) to your `config/services.php`:

```
// config/services.php
...
'customs' => [
    'username' => env('CUSTOMS_USERNAME'), // Customs API username
    'password' => env('CUSTOMS_PASSWORD'), // Customs API password
    'url' => env('CUSTOMS_API_URL'), // optional, use only if you need to override the default,
                                  // defaults to https://api.customs.gov.mv/api/
],
...
```

Usage
-----

[](#usage)

Using the App container:

```
$customs = App::make('customs');
$entity = $customs->getTraderByMedNumber('C-0933/2017');
```

Using the Facade

```
use Customs;

$entity = Customs::getTraderByMedNumber('C-0933/2017');
```

### Available Methods

[](#available-methods)

```
Customs::getTraderByMedNumber($business_registration_number);
Customs::getTraderByCNumber($impoter_exporter_number);
```

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)

- [Javaabu Pvt. Ltd.](https://github.com/javaabu)
- [Arushad Ahmed (@dash8x)](http://arushad.org)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Disclaimer
----------

[](#disclaimer)

This package is not in any way officially affiliated with Maldives Customs Service. The "Customs" name has been used under fair use.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance76

Regular maintenance activity

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~267 days

Recently: every ~334 days

Total

6

Last Release

131d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6671720?v=4)[Arushad Ahmed](/maintainers/dash8x)[@dash8x](https://github.com/dash8x)

![](https://avatars.githubusercontent.com/u/31658513?v=4)[Javaabu](/maintainers/javaabu)[@Javaabu](https://github.com/Javaabu)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/javaabu-customs-api/health.svg)

```
[![Health](https://phpackages.com/badges/javaabu-customs-api/health.svg)](https://phpackages.com/packages/javaabu-customs-api)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.7k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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