PHPackages                             thangnm93/coccoc-shipping-service - 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. thangnm93/coccoc-shipping-service

ActivePhp-extension

thangnm93/coccoc-shipping-service
=================================

It helps Vietnamese buy products on Amazon website.

00PHP

Since Apr 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/thangnm93/coccoc-shipping-service)[ Packagist](https://packagist.org/packages/thangnm93/coccoc-shipping-service)[ RSS](/packages/thangnm93-coccoc-shipping-service/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Shipping Service Package
========================

[](#shipping-service-package)

This is an easy to use package to calculate the cross price.

#### Shipping Service Providers Available:

[](#shipping-service-providers-available)

- Amazon

1. Requirements
---------------

[](#1-requirements)

- [PHP &gt;= 7.1.0](http://php.net)

2. Installation
---------------

[](#2-installation)

Require using [Composer](https://getcomposer.org):

```
$ composer install
```

3. How to use
-------------

[](#3-how-to-use)

```
include_once './vendor/autoload.php';

use \Coccoc\ShippingService\Providers\AmazonProvider;
use \Coccoc\ShippingService\Services\OrderService;
use \Coccoc\ShippingService\Product;

$products = array(
    array(
        'price' => 10,
        'weight' => 120, // gram
        'width' => 100, // cm
        'height' => 120, // cm
        'depth' => 10,
    ),
    array(
        'price' => 20,
        'weight' => 150, // gram
        'width' => 110, // cm
        'height' => 120, // cm
        'depth' => 8,
    )
);

$provider = new AmazonProvider();
$order_service = new OrderService($provider);
foreach ($products as $_product) {
    $product = new Product();
    $product->setPrice($_product['price']);
    $product->setWeight($_product['weight']);
    $product->setWidth($_product['width']);
    $product->setHeight($_product['height']);
    $product->setDepth($_product['depth']);
    $order_service->setProduct($product);
}
$order_gross_price = $order_service->handle();
```

4. Testing
----------

[](#4-testing)

```
$ ./vendor/bin/phpunit --testdox --coverage-text --coverage-clover=coverage.clover
```

or using this command

```
$ composer test
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![thangnm93](https://avatars.githubusercontent.com/u/13392060?v=4)](https://github.com/thangnm93 "thangnm93 (20 commits)")

### Embed Badge

![Health badge](/badges/thangnm93-coccoc-shipping-service/health.svg)

```
[![Health](https://phpackages.com/badges/thangnm93-coccoc-shipping-service/health.svg)](https://phpackages.com/packages/thangnm93-coccoc-shipping-service)
```

PHPackages © 2026

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