{"id":13405451,"url":"https://github.com/openboleto/openboleto","last_synced_at":"2026-01-14T01:20:09.709Z","repository":{"id":6427719,"uuid":"7666338","full_name":"openboleto/openboleto","owner":"openboleto","description":"Biblioteca para geração de boletos bancários em PHP","archived":false,"fork":false,"pushed_at":"2025-08-23T14:59:52.000Z","size":25098,"stargazers_count":605,"open_issues_count":36,"forks_count":332,"subscribers_count":56,"default_branch":"master","last_synced_at":"2025-11-06T12:09:14.180Z","etag":null,"topics":["boletos","jasperreports","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openboleto.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-01-17T13:05:21.000Z","updated_at":"2025-10-30T23:27:37.000Z","dependencies_parsed_at":"2024-03-10T23:24:35.710Z","dependency_job_id":"799e8de7-b35a-4000-aee2-680d14824c13","html_url":"https://github.com/openboleto/openboleto","commit_stats":{"total_commits":248,"total_committers":44,"mean_commits":5.636363636363637,"dds":0.7741935483870968,"last_synced_commit":"2fa22045d58ab6fd90aa472f208ed07c4134787c"},"previous_names":["kriansa/openboleto"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/openboleto/openboleto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openboleto%2Fopenboleto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openboleto%2Fopenboleto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openboleto%2Fopenboleto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openboleto%2Fopenboleto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openboleto","download_url":"https://codeload.github.com/openboleto/openboleto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openboleto%2Fopenboleto/sbom","scorecard":{"id":708914,"data":{"date":"2025-08-11","repo":{"name":"github.com/openboleto/openboleto","commit":"1cb57131feb20d8bd8942f0c5f9cfab174bb730c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":8,"reason":"Found 12/14 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T07:34:11.706Z","repository_id":6427719,"created_at":"2025-08-22T07:34:11.706Z","updated_at":"2025-08-22T07:34:11.706Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boletos","jasperreports","php"],"created_at":"2024-07-30T19:02:02.510Z","updated_at":"2026-01-14T01:20:09.684Z","avatar_url":"https://github.com/openboleto.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# OpenBoleto\r\n\r\nO OpenBoleto é uma biblioteca de código aberto para geração de boletos bancários, um meio de pagamento muito comum no Brasil. O foco é ser simples e ter uma arquitetura compatível com os recursos mais modernos do PHP.\r\n\r\nSe esse projeto te auxiliou de alguma forma, você pode contribuir financeiramente para que eu possa continuar a desenvolver projetos open source. As contribuições podem ser:\r\n\r\n# Ajude o Projeto a continuar, faça uma doação no PIX!\r\n\r\n    b230c7a8-8743-459f-bae5-541ea46a3533\r\n\r\n![302100763-dc530122-d9fb-41e4-9edf-dc9c32e74adc](https://github.com/fredroo/cnpj2sql/assets/6863089/1a6505e5-5039-4609-87af-ba84f03d4b08)\r\n\r\n## Instalação\r\n\r\n### Composer\r\n\r\nSe você já conhece o **Composer** (o que é extremamente recomendado), simplesmente adicione a dependência abaixo à diretiva _\"require\"_ em seu **composer.json**:\r\n\r\n```\r\n\"openboleto/openboleto\": \"dev-master\"\r\n```\r\n\r\n### PSR-0 autoloader\r\n\r\nHoje praticamente qualquer framework utiliza deste padrão, então você deve [baixar](https://github.com/fredroo/openboleto/archive/master.zip) o OpenBoleto, colocar em uma pasta específica (geralmente _lib_ ou _vendor_) e procurar na documentação do seu framework para fazer com que o seu autoloader aponte o namespace **OpenBoleto** para a pasta **src** do OpenBoleto.\r\n\r\n### Stand-alone library\r\n\r\nSe você quer simplesmente baixar e dar um include, também é muito simples. Primeiro [baixe](https://github.com/fredroo/openboleto/archive/master.zip) (ou dê clone no repositório), e coloque em uma pasta específica. Depois, dê um include no arquivo **autoloader.php** e voilà!\r\n\r\n## Gerando boletos\r\n\r\nEssa é a melhor parte. Não poderia ser mais simples, veja um exemplo básico:\r\n\r\n```php\r\nuse OpenBoleto\\Agente;\r\nuse OpenBoleto\\Banco\\BancoDoBrasil;\r\n\r\n$sacado = new Agente('Fernando Maia', '023.434.234-34', 'ABC 302 Bloco N', '72000-000', 'Brasília', 'DF');\r\n$cedente = new Agente('Empresa de cosméticos LTDA', '02.123.123/0001-11', 'CLS 403 Lj 23', '71000-000', 'Brasília', 'DF');\r\n\r\n$boleto = new BancoDoBrasil(array(\r\n    // Parâmetros obrigatórios\r\n    'dataVencimento' =\u003e new DateTime('2013-01-24'),\r\n    'valor' =\u003e 23.00,\r\n    'sequencial' =\u003e 1234567, // Para gerar o nosso número\r\n    'sacado' =\u003e $sacado,\r\n    'cedente' =\u003e $cedente,\r\n    'agencia' =\u003e 1724, // Até 4 dígitos\r\n    'carteira' =\u003e 18,\r\n    'conta' =\u003e 10403005, // Até 8 dígitos\r\n    'convenio' =\u003e 1234, // 4, 6 ou 7 dígitos\r\n    'qrCode' =\u003e 'otpauth://totp/test?secret=B3JX4VCVJDVNXNZ5\u0026issuer=chillerlan.net', // Caso o Boleto tenha registro para uso de QrCode Pix\r\n));\r\n\r\necho $boleto-\u003egetOutput();\r\n```\r\n## Como adiquirir o QrCode Pix\r\n\r\nO uso padrão do PIX não pode ser usado no boleto, à instituição bancária tem um serviço da qual você passa o boleto registrado e solicita a PIX, o banco vai te retornar uma string na qual é o PIX que identifica o boleto, para quando realizar o pagamento via PIX, tenha referência do boleto para ser baixado.\r\n\r\n\r\nSim, só isso! Lembre-se de que cada banco possui alguma particularidade, mas em geral são estes parâmetros os obrigatórios. Na pasta **samples** existe um exemplo funcional de cada banco, você pode verificar lá quais são os parâmetros necessários para cada banco.\r\n\r\n## Bancos suportados\r\n\r\nAtualmente o OpenBoleto funciona com os bancos abaixo:\r\n\r\n\u003ctable\u003e\r\n \u003ctr\u003e\r\n  \u003cth\u003eBanco\u003c/th\u003e\r\n  \u003cth\u003eSituação HTML\u003c/th\u003e\r\n  \u003cth\u003eSituação JasperPHP(PDF)\u003c/th\u003e\r\n \u003c/tr\u003e\r\n \u003ctr\u003e\r\n \u003ctd\u003eBanco de Brasília (BRB)\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n  \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003c/tr\u003e\r\n \u003ctr\u003e\r\n \u003ctd\u003eBanco do Brasil\u003c/td\u003e\r\n \u003ctd\u003eHomologado\u003c/td\u003e\r\n  \u003ctd\u003eHomologado\u003c/td\u003e\r\n \u003c/tr\u003e\r\n \u003ctr\u003e\r\n  \u003ctd\u003eBanco do Nordeste\u003c/td\u003e\r\n  \u003ctd\u003eBeta\u003c/td\u003e\r\n   \u003ctd\u003eBeta\u003c/td\u003e\r\n  \u003c/tr\u003e\r\n \u003ctr\u003e\r\n \u003ctd\u003eBanese\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003c/tr\u003e\r\n \u003ctr\u003e\r\n \u003ctd\u003eBradesco\u003c/td\u003e\r\n \u003ctd\u003eHomologado\u003c/td\u003e\r\n \u003ctd\u003eHomologado\u003c/td\u003e\r\n \u003c/tr\u003e\r\n\u003ctr\u003e\r\n \u003ctd\u003eCaixa (SIGCB)\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003ctd\u003eHomologado\u003c/td\u003e\r\n \u003c/tr\u003e\r\n\u003ctr\u003e\r\n \u003ctd\u003eCecred\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003c/tr\u003e\r\n \u003ctr\u003e\r\n   \u003ctd\u003eHSBC\u003c/td\u003e\r\n   \u003ctd\u003eBeta\u003c/td\u003e\r\n   \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003c/tr\u003e\r\n\u003ctr\u003e\r\n \u003ctd\u003eItaú\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003ctd\u003eHomologado\u003c/td\u003e\r\n \u003c/tr\u003e\r\n\u003ctr\u003e\r\n \u003ctd\u003eSantander\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003c/tr\u003e\r\n\u003ctr\u003e\r\n \u003ctd\u003eSicoob\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003c/tr\u003e\r\n\u003ctr\u003e\r\n \u003ctd\u003eUnicred\u003c/td\u003e\r\n \u003ctd\u003eHomologado\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003c/tr\u003e\r\n\u003ctr\u003e\r\n \u003ctd\u003eViacredi\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003c/tr\u003e\r\n\u003ctr\u003e\r\n \u003ctd\u003eSicredi\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003c/tr\u003e\r\n \u003ctr\u003e\r\n \u003ctd\u003eBanrisul\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003ctd\u003eBeta\u003c/td\u003e\r\n \u003c/tr\u003e\r\n  \u003ctr\u003e\r\n \u003ctd\u003eC6 Bank\u003c/td\u003e\r\n \u003ctd\u003eHomologado\u003c/td\u003e\r\n \u003ctd\u003eHomologado\u003c/td\u003e\r\n \u003c/tr\u003e\r\n  \u003ctr\u003e\r\n \u003ctd\u003eABC\u003c/td\u003e\r\n \u003ctd\u003eHomologado\u003c/td\u003e\r\n \u003ctd\u003eHomologado\u003c/td\u003e\r\n \u003c/tr\u003e\r\n \u003ctr\u003e\r\n \u003ctd\u003eBV\u003c/td\u003e\r\n \u003ctd\u003e--\u003c/td\u003e\r\n \u003ctd\u003eBETA\u003c/td\u003e\r\n \u003c/tr\u003e\r\n\r\n \u003c/table\u003e\r\n\r\n### API Banco Inter\r\n\r\nO Banco Inter está disponibilizando uma API para emissão de boletos. O projeto [ctodobom/APInter-PHP](https://github.com/ctodobom/APInter-PHP) implementa funções para facilitar o acesso à essa API.\r\n\r\n## Integração com QuilhaSoft/JasperPHP\r\n\r\nQuilhaSoft/JasperPHP é uma biblioteca puro PHP, que gera o boleto no formato PDF sem conversão do HTML, o layout do boleto pode ser editado com o JasperSoft Studio\r\n\r\nPara ver funcionando abra o exemplo em https://github.com/QuilhaSoft/JasperPHP-OpenBoleto\r\n\r\nToda contribuição é bem vinda. Se você deseja adaptar o OpenBoleto a algum outro banco, fique à vontade para explorar o código, veja como é bastante simples integrar qualquer banco à biblioteca.\r\n\r\n## Remessa e Retorno\r\n\r\nhttps://github.com/QuilhaSoft/OpenCnabPHP\r\n\r\n## Licença\r\n\r\n- MIT License\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenboleto%2Fopenboleto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenboleto%2Fopenboleto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenboleto%2Fopenboleto/lists"}