Download the PHP package leandronunes07/c6bank-php-sdk without Composer
On this page you can find all versions of the php package leandronunes07/c6bank-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leandronunes07/c6bank-php-sdk
More information about leandronunes07/c6bank-php-sdk
Files in leandronunes07/c6bank-php-sdk
Package c6bank-php-sdk
Short Description A PHP SDK for C6 Bank API
License MIT
Informations about the package c6bank-php-sdk
C6 Bank PHP SDK π§π·
Unofficial PHP SDK for C6 Bank API. Simplify your integration with C6 Bank's services using a robust, object-oriented, and production-ready library.
π Why use this SDK?
Integration with banking APIs can be complex (mTLS, OAuth2, cryptic errors). This SDK abstracts all that complexity into a fluent, easy-to-use interface.
- Fluent Interface:
$c6->pix()->cob()->create(...) - Strongly Typed: Input and Output DTOs for IntelliSense and Type Safety.
- Production Ready:
- π’ Auth Cache: Prevents Rate Limiting by caching tokens (PSR-16).
- π΅οΈ Logging: Debug requests and responses (PSR-3).
- π Resilience: Auto-retry on network failures or 5xx errors.
- π‘οΈ Validation: Fail-fast validation for CPFs, CNPJs, and UUIDs.
- Complete: Support for Boleto, PIX, Webhooks, Checkout, Schedule, Statement, and C6 Pay.
π¦ Installation
Install via Composer:
Requirements
- PHP >= 8.1
ext-json,ext-curlpsr/simple-cache,psr/log
β‘ Quick Start (Simple)
For development/testing:
π Production Setup (Recommended)
For production, you should inject a Cache (to store tokens) and a Logger (to debug errors).
π Modules & Examples
Full documentation for each module can be found in EXAMPLES.md.
| Module | Description | Resource Access |
|---|---|---|
| Authentication | OAuth2 Token Management | Internal |
| Accounts | Balance and Account Details | $c6->accounts() |
| Bank Slips | Issue, Consult, Cancel Boletos | $c6->bankSlips() |
| PIX | Dynamic QRCodes, Cob, CobV | $c6->pix() |
| Webhooks | PIX and Banking notifications | $c6->pix()->webhook(), $c6->bankingWebhook() |
| Checkout | E-commerce Payment Links | $c6->checkout() |
| Schedule | Payment Scheduling (DDA/Ted) | $c6->schedule() |
| Statement | Account Statements | $c6->statement() |
| C6 Pay | POS transactions and receivables | $c6->c6pay() |
π Security
- mTLS Support: The SDK handles mutual TLS authentication required by C6 Bank.
- Token Management: OAuth2 tokens are potentially critical. Use a secure Cache backend (Redis/Memcached) in production.
- Sensitive Data: The built-in Logger automatically redacts the
Authorizationheader.
π€ Contributing
We welcome contributions! Please check CONTRIBUTING.md for details on code standards and testing.
- Fork the project.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
π License
Distributed under the MIT License. See LICENSE for more information.
π¨βπ» Authors
Developed with β€οΈ by AgΓͺncia Taruga and Leandro Oliveira Nunes.
All versions of c6bank-php-sdk with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.8
psr/log Version ^3.0
psr/simple-cache Version ^3.0