PHPackages                             chags/apicielophp - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. chags/apicielophp

ActiveLibrary[HTTP &amp; Networking](/categories/http)

chags/apicielophp
=================

Pacote PHP para integração com a API RESTful da Cielo, suportando pagamentos com cartão de crédito, débito e mais.

1.0.1(1y ago)010MITPHPPHP ^7.4 || ^8.0

Since Nov 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/chags1/cieloapiphp)[ Packagist](https://packagist.org/packages/chags/apicielophp)[ RSS](/packages/chags-apicielophp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Api Cielo com PHP
=================

[](#api-cielo-com-php)

Pacote PHP para integração com a API RESTful da Cielo.

Instalação
----------

[](#instalação)

Use o Composer para instalar o pacote:

```
composer require chags/apicielophp
```

segue o exemplo de uma compra como o cartão
-------------------------------------------

[](#segue-o-exemplo-de-uma-compra-como-o-cartão)

Os dados são ficticio e deve ser substituido pelos seus dados. Quando for colocar em produção mude de 'sandbox' para 'production'

```
require 'vendor/autoload.php';
use apicielophp\Cielo;

// Credenciais de produção
$merchantId = '8937bd5b-9796-494d-9fe5-f76b3e4da633';
$merchantKey = 'XKGHUBSBKIRXKAVPSKWLVXYCLVJUGTNZLIHPUSYV';

// Instanciar o cliente no ambiente de teste
$cielo = new Cielo($merchantId, $merchantKey, 'sandbox');

// Dados da venda
$data =[
    'MerchantOrderId' => '123456',
    'Customer' => ['Name' => 'Teste'],
    'Payment' => [
        'Type' => 'CreditCard',
        'Amount' => 10000,
        'Installments' => 1,
        'CreditCard' => [
            'CardNumber' => '1234123412341234',
            'Holder' => 'Teste',
            'ExpirationDate' => '12/2030',
            'SecurityCode' => '123',
            'Brand' => 'Visa'
        ]
    ]
];

try {
    $response = $cielo->createPhysicalSale($data);
    print_r($response);
} catch (\Exception $e) {
    echo 'Erro: ' . $e->getMessage();
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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

Unknown

Total

1

Last Release

531d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7732cd8bc23f6d2987028ec707650ab82f80085772f8d2f7ec276b922d2e83c4?d=identicon)[chags1](/maintainers/chags1)

---

Top Contributors

[![chags](https://avatars.githubusercontent.com/u/4213518?v=4)](https://github.com/chags "chags (16 commits)")[![chags1](https://avatars.githubusercontent.com/u/189488746?v=4)](https://github.com/chags1 "chags1 (1 commits)")

---

Tags

phpapirestpagamentoscielo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chags-apicielophp/health.svg)

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

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.3M14](/packages/xeroapi-xero-php-oauth2)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

1204.3k](/packages/zenditplatform-zendit-php-sdk)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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