PHPackages                             isaquesb/clear-sale-php-sdk - 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. isaquesb/clear-sale-php-sdk

Abandoned → [isaquesb/php-clear-sale](/?search=isaquesb%2Fphp-clear-sale)Library

isaquesb/clear-sale-php-sdk
===========================

Clear Sale API Client

v1.2.2(6y ago)52.6k2MITPHPPHP &gt;=5.4

Since May 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/isaquesb/php-clear-sale)[ Packagist](https://packagist.org/packages/isaquesb/clear-sale-php-sdk)[ RSS](/packages/isaquesb-clear-sale-php-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (6)Used By (0)

ClearSale PHP
=============

[](#clearsale-php)

### Requirements

[](#requirements)

- PHP &gt;= 5.4

### Install

[](#install)

```
composer require isaquesb/php-clear-sale

```

### Complete Usage Example

[](#complete-usage-example)

```
$service = new ClearSale\Service\Orders(
    new \ClearSale\Ambient\Sandbox(),
    new \ClearSale\Auth\Login($login, $pass)
);
try {
    $orderCode = 'ORDER_EXAMPLE_4000';
    $order = new \ClearSale\Order([
        'code' => $orderCode,
        'sessionID' => md5(uniqid('session')),
        'date' => '2019-05-22 13:38:59',
        'email' => 'email@email.com.br',
        'totalValue' => 15.00,
        'numberOfInstallments' => 1,
        'ip' => '192.168.0.1',
        'billing' => new \ClearSale\Billing([
            'clientID' => 'Client123',
            'type' => \ClearSale\Billing::PERSON_NATURAL,
            'primaryDocument' => '12345678910',
            'secondaryDocument' => '12345678',
            'name' => 'Complete Client Name',
            'birthDate' => '1990-01-10',
            'email' => 'email@email.com.br',
            'gender' => \ClearSale\Gender::MALE,
            'address' => new \ClearSale\Address([
                'street' => 'Street name example',
                'number' => '100',
                'additionalInformation' => 'Additional information example',
                'county' => 'County Example',
                'city' => 'City Example',
                'state' => 'SP',
                'zipcode' => '12345678',
                'country' => 'Brasil',
                'reference' => 'Address reference example'
            ]),
            'phones' => [
                new \ClearSale\Phone([
                    'type' => \ClearSale\Phone::HOME,
                    'ddi' => 55,
                    'ddd' => 11,
                    'number' => 33333333
                ])
            ]
        ]),
        'shipping' => new \ClearSale\Shipping([
            'clientID' => 'Client123',
            'type' => 1,
            'primaryDocument' => '12345678910',
            'secondaryDocument' => '12345678',
            'name' => 'Complete Client Name',
            'birthDate' => '1990-01-10',
            'email' => 'email@email.com.br',
            'gender' => \ClearSale\Gender::MALE,
            'address' => new \ClearSale\Address([
                'street' => 'Street name example',
                'number' => '100',
                'additionalInformation' => 'Additional information example',
                'county' => 'County Example',
                'city' => 'City Example',
                'state' => 'SP',
                'zipcode' => '12345678',
                'country' => 'Brasil',
                'reference' => 'Address reference example'
            ]),
            'phones' => [
                new \ClearSale\Phone([
                    'type' => 1,
                    'ddi' => 55,
                    'ddd' => 11,
                    'number' => 33333333,
                    'extension' => '1111'
                ])
            ],
            'deliveryType' => \ClearSale\Delivery::NORMAL,
            'deliveryTime' => '2 dias úteis',
            'price' => 5,
            'pickUpStoreDocument' => '12345678910'
        ]),
        'payments' => [
            new \ClearSale\Payment([
                'sequential' => 1,
                'date' => '2019-05-25 22:36:53',
                'value' => 25.00,
                'type' => 1,
                'installments' => 1,
                'interestRate' => 10,
                'interestValue' => 2.00,
                'currency' => 986,
                'voucherOrderOrigin' => '123456',
                'card' => new \ClearSale\Card([
                    'bin' => '123456',
                    'end' => '1234',
                    'type' => \ClearSale\Card::DINERS,
                    'validityDate' => '02/2021',
                    'ownerName' => 'Owner Card Name',
                    'document' => '12345678910'
                ]),
                'address' => new \ClearSale\Address([
                    'street' => 'Street name example',
                    'number' => '10',
                    'additionalInformation' => 'Additional information example',
                    'county' => 'County Example',
                    'city' => 'City Example',
                    'state' => 'SP',
                    'zipcode' => '12345678',
                    'country' => 'Brasil',
                    'reference' => 'Address reference example'
                ])
            ])
        ],
        'items' => [
            new \ClearSale\Item([
                'code' => 'Item Code',
                'name' => 'Item description',
                'value' => 10,
                'amount' => 1,
                'categoryID' => 1,
                'categoryName' => 'Item category name',
            ])
        ]
    ]);
    $send = $service->send($order);
    print_r($send);
    print_r($service->statusCheck($orderCode));
} catch (\ClearSale\Service\ServiceResponseException $exception) {
    echo $exception->getMessage();
}
```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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 ~75 days

Total

5

Last Release

2236d ago

### Community

Maintainers

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

---

Top Contributors

[![isaquesb](https://avatars.githubusercontent.com/u/3066343?v=4)](https://github.com/isaquesb "isaquesb (8 commits)")

### Embed Badge

![Health badge](/badges/isaquesb-clear-sale-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/isaquesb-clear-sale-php-sdk/health.svg)](https://phpackages.com/packages/isaquesb-clear-sale-php-sdk)
```

PHPackages © 2026

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