PHPackages                             luizsilva-dev/sicoob-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. [API Development](/categories/api)
4. /
5. luizsilva-dev/sicoob-sdk

ActiveLibrary[API Development](/categories/api)

luizsilva-dev/sicoob-sdk
========================

017PHP

Since May 23Pushed 11mo agoCompare

[ Source](https://github.com/luizsilva-dev/sicoob-sdk)[ Packagist](https://packagist.org/packages/luizsilva-dev/sicoob-sdk)[ RSS](/packages/luizsilva-dev-sicoob-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sicoob SDK
==========

[](#sicoob-sdk)

> ⚠️ Este projeto é baseado originalmente no repositório [mangati/sicoob-sdk](https://github.com/mangati/sicoob-sdk). Todos os créditos ao autor original. Esta versão é uma cópia com modificações para uso próprio.

Configuração
------------

[](#configuração)

```
use LuizSilvaDev\Sicoob\SicoobClient;
use Symfony\Component\HttpClient\HttpClient;
use Symfony\Component\HttpClient\HttpOptions;;

$localCert = "path/to/cert.pem";
$localPk = "path/to/cert.key";

$options = new HttpOptions();
$options
    ->setLocalCert($localCert)
    ->setLocalPk($localPk);

$client = HttpClient::create(
    defaultOptions: $options->toArray(),
);

// pix
$sicoob = new SicoobPixClient($client);
// boleto
$sicoob = new SicoobCobrancaBancariaClient($client);
// conta corrente
$sicoob = new SicoobContaCorrenteClient($client);
```

Autenticação
------------

[](#autenticação)

Produção:

```
use LuizSilvaDev\Sicoob\Dto\TokenRequest;
use LuizSilvaDev\Sicoob\Types\TokenScope;

$response = $sicoob->token(new TokenRequest(
    clientId: $clientId,
    scopes: [ TokenScope::COBRANCA_BOLETOS_INCLUIR ],
));

print_r($response);
// output:
//
// LuizSilvaDev\Sicoob\Dto\TokenResponse Object
// (
//   [token] => LuizSilvaDev\Sicoob\Dto\AuthenticationToken Object
//     (
//       [clientId] =>
//       [tokenType] => Bearer
//       [accessToken] =>
//       [expiresIn] => 300
//       [refreshExpiresIn] => 0
//       [scopes] => Array
//          (
//            [0] => LuizSilvaDev\Sicoob\Types\TokenScope Enum:string
//              (
//                [name] => COBRANCA_BOLETOS_INCLUIR
//                [value] => boletos_inclusao
//              )
//          )
//       [isSandbox] => false
//     )
// )
```

Sandbox:

```
use LuizSilvaDev\Sicoob\SicoobCobrancaBancariaClient;
use LuizSilvaDev\Sicoob\Dto\AuthenticationToken;

// Acesse https://developers.sicoob.com.br/portal/sandbox
// para pegar o "Client ID" e o "Access Token (Bearer)"

/** @var AuthenticationToken */
$token = SicoobCobrancaBancariaClient::sandboxToken(
    clientId: '',
    accessToken: '',
);
```

Cobrança Bancária - Boleto
--------------------------

[](#cobrança-bancária---boleto)

```
use LuizSilvaDev\Sicoob\Dto\CobrancaBancaria\IncluirBoletoRequest;
use LuizSilvaDev\Sicoob\Model\CobrancaBancaria\Boleto;

$auth = $sicoob->token(new TokenRequest(
    clientId: $clientId,
    scopes: [ TokenScope::COBRANCA_BOLETOS_INCLUIR ],
));

$response = $sicoob->incluirBoleto($auth->token, new IncluirBoletoRequest(
    boleto: new Boleto(),
));

/** @var Boleto */
$boleto = $response->resultado;

$base64Data = $boleto->pdfBoleto;
$nossoNumero = $boleto->nossoNumero;
```

Cobrança Bancária - Movimentações
---------------------------------

[](#cobrança-bancária---movimentações)

```
use LuizSilvaDev\Sicoob\Helper\CobrancaBancaria\MovimentacoesDownloader;
use LuizSilvaDev\Sicoob\Model\CobrancaBancaria\Movimentacao;

$auth = $sicoob->token(new TokenRequest(
    clientId: $clientId,
    scopes: [ TokenScope::COBRANCA_BOLETOS_CONSULTAR ],
));

$downloader = new MovimentacoesDownloader($sicoob);

/** @var Generator */
$movimentacoes = $downloader->download(
    $token,
    $numeroCliente,
    $tipoMovimento,
    $dataInicial,
    $dataFinal
);

foreach ($movimentacoes as $movimentacao) {
    print_r($movimentacao);
    // LuizSilvaDev\Sicoob\Model\CobrancaBancaria\Movimentacao Object
    // (
    //     [siglaMovimento] => ENTR
    //     [dataInicioMovimento] => DateTimeImmutable
    //     [dataFimMovimento] => DateTimeImmutable
    //     [numeroCliente] => 123456
    //     [numeroContrato] => 987654
    //     [modalidade] => 1
    //     [numeroTitulo] => 1004
    //     [seuNumero] => 100
    //     [dataVencimentoTitulo] => DateTimeImmutable
    //     [valorTitulo] => 150
    //     [codigoBarras] => 75600000000000000000000000000000000000000001
    //     [dataMovimentoEntrada] => DateTimeImmutable
    //     [dataEmissaoDocumento] => DateTimeImmutable
    //     [dataLimitePagamento] => DateTimeImmutable
    //     [numeroContaCorrente] => 102938
    //     [valorTarifaMovimento] => 0
    //     [numeroContratoCobranca] => 1234
    // )
}
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

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/f6bcfcae590230884024ca8a101da0e2f6d4ef7af0deb1b1abb8d2d1ce57d028?d=identicon)[luizsilva-dev](/maintainers/luizsilva-dev)

### Embed Badge

![Health badge](/badges/luizsilva-dev-sicoob-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/luizsilva-dev-sicoob-sdk/health.svg)](https://phpackages.com/packages/luizsilva-dev-sicoob-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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