PHPackages                             aslam/laravel-rpx - 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. aslam/laravel-rpx

ActiveLibrary[API Development](/categories/api)

aslam/laravel-rpx
=================

RPX API

v1.0.6(5y ago)578MITPHPPHP &gt;=7.2|^8.0

Since Apr 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Aslam97/laravel-rpx)[ Packagist](https://packagist.org/packages/aslam/laravel-rpx)[ RSS](/packages/aslam-laravel-rpx/feed)WikiDiscussions main Synced yesterday

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

Laravel RPX
===========

[](#laravel-rpx)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Latest Version on Packagist](https://camo.githubusercontent.com/78bd9fd53b9ef8c91ae3521e59da4bbff28bdaad654f0bec35e5163804e4ddfb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61736c616d2f6c61726176656c2d7270782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aslam/laravel-rpx)

The Laravel RPX package is meant to integrate your Application with RPX Courier API. For clearer and more complete documentation, please visit the official website [API PPX](http://api.rpxholding.com/)

Features
--------

[](#features)

This package provides tools for the following, and more:

- Public Customer
- Customer Account Number

Intallation
-----------

[](#intallation)

You can install the package via composer.

```
composer require aslam/laravel-rpx
```

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

[](#configuration)

To get started. you should publish the `config/rpx.php` config file with:

```
php artisan vendor:publish --provider="Aslam\Rpx\Providers\RpxServiceProvider"
```

Response
--------

[](#response)

The API method returns an instance of `\Aslam\Response\Response`, which provides a variety of methods that may be used to inspect the response:

```
method()->body() : string;
method()->toJson() : array|mixed;
method()->collect() : "\Illuminate\Support\Collection";
method()->status() : int;
method()->ok() : bool;
method()->successful() : bool;
method()->failed() : bool;
method()->serverError() : bool;
method()->clientError() : bool;
method()->header($header) : string;
method()->headers() : array;
```

Usage
-----

[](#usage)

#### Public Customer

[](#public-customer)

```
/**
 * Get all province
*/
$getProvince = rpx()->getProvince()->toJson();

/**
 * Get city
 *
 * @param string|null $province
*/
$getCity = rpx()->getCity()->toJson();

$getService = rpx()->getService()->toJson();

$getOrigin = rpx()->getOrigin()->toJson();

$getDestination = rpx()->getDestination()->toJson();

/**
 * @param string origin
 * @param string destination
 * @param string|null service type
 * @param string|float|null weight
 * @param string|float|null discount
 */
$getRates = rpx()->getRates('JAK', 'DPS', 'PSR', '1', '50')->toJson();

/**
 * @param string origin postal code
 * @param string destination postal code
 * @param string|null service type
 * @param string|float|null weight
 * @param string|float|null discount
 */
$getRatesPostalCode = rpx()->getRatesPostalCode('12310', '12310')->toJson();

/**
 * @param string awb
 */
$getTrackingAWB = rpx()->getTrackingAWB('100055295410')->toJson();

/**
 * @param string|null city_id
 * @param string|null cod area
 * @param string|null service type
 */
$getPostalCode = rpx()->getPostalCode('JAK', null, 'RGP')->toJson();

/**
 * @param string awb
 */
$getAWBbyReference = rpx()->getAWBbyReference('123456789')->toJson();
```

### Customer Account Number

[](#customer-account-number)

```
/**
 * @param string trackdate from
 * @param string trackdate to
 */
$getRevenue = rpx()->withAccountNumber('234098705')->getRevenue('2018-01-01', '2018-02-01')->toJson();

/**
 * @param string service type
 * @param string origin
 * @param string destination
 * @param float|null weight
 * @param float|null disc
 */
$getCustumerRates = rpx()->getCustumerRates(null, 'JAK', 'JAK', 1, 20)->toJson();

$sendShipmentData = rpx()->sendShipmentData([
    'awb' => '',
    'package_id' => '56849',
    'order_type' => 'MP',
    'order_number' => '101010',
    'service_type_id' => 'RGP',
    'shipper_account' => '234098705',
    'shipper_name' => 'Mahkotababy',
    'shipper_company' => 'Mahkotababy',
    'shipper_address1' => 'Jl. RS Fatmawati No. 17',
    'shipper_address2' => '',
    'shipper_kelurahan' => 'Kemayoran',
    'shipper_kecamatan' => 'Gandaria Selatan',
    'shipper_city' => 'CILANDAK',
    'shipper_state' => 'DKI Jakarta',
    'shipper_zip' => '12420',
    'shipper_phone' => '+6285314855952',
    'identity_no' => '',
    'shipper_mobile_no' => '+6281297773820',
    'shipper_email' => '',
    'consignee_account' => '',
    'consignee_name' => 'dedeh',
    'consignee_company' => '',
    'consignee_address1' => 'apotek marga mulyaAlamat kp pasarRtx2Frw 0502 Dssindangkerta',
    'consignee_address2' => '',
    'consignee_kelurahan' => 'Sukamaju',
    'consignee_kecamatan' => 'PAGELARAN',
    'consignee_city' => 'Cianjur',
    'consignee_state' => 'Jawa Barat',
    'consignee_zip' => '43266',
    'consignee_phone' => '+6285314855952',
    'consignee_mobile_no' => '6285314855952',
    'consignee_email' => 'dimas.seputro@gmail.com',
    'desc_of_goods' => 'Oblong panjang isi 4 9-12bln kode 3',
    'tot_package' => '1',
    'actual_weight' => '1',
    'tot_weight' => '1',
    'tot_declare_value' => '1',
    'tot_dimensi' => '1',
    'flag_mp_spec_handling' => 'N',
    'insurance' => 'N',
    'surcharge' => 'N',
    'high_value' => 'N',
    'high_docs' => 'N',
    'electronic' => 'N',
    'flag_dangerous_goods' => 'N',
    'flag_birdnest' => 'N',
    'declare_value' => '91500',
    'dest_store_id' => '',
    'dest_dc_id' => '',
    'widhtx' => '',
    'lengthx' => '',
    'heightx' => '',
    'flight_date' => '',
    'flight_no' => '',
    'remarks' => 'TEST API jangan Dipuckup',
])->toJson();
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~1 days

Total

7

Last Release

1860d ago

### Community

Maintainers

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

---

Top Contributors

[![Aslam97](https://avatars.githubusercontent.com/u/25027592?v=4)](https://github.com/Aslam97 "Aslam97 (18 commits)")

---

Tags

kurir-rpxlaravellaravel-rpxlaravel-rpxrpx-apilaravel-kurir-rpx

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aslam-laravel-rpx/health.svg)

```
[![Health](https://phpackages.com/badges/aslam-laravel-rpx/health.svg)](https://phpackages.com/packages/aslam-laravel-rpx)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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