PHPackages                             paseto/nfse-betha - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. paseto/nfse-betha

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

paseto/nfse-betha
=================

PHP library for NFSe Betha integration with XML digital signing support using ICP Brasil certificates

1.03(9mo ago)01221MITPHPPHP &gt;=7.4

Since Jul 27Pushed 9mo agoCompare

[ Source](https://github.com/paseto/nfse-betha)[ Packagist](https://packagist.org/packages/paseto/nfse-betha)[ Docs](https://github.com/paseto/nfse-betha)[ RSS](/packages/paseto-nfse-betha/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

NFSe Betha PHP Library
======================

[](#nfse-betha-php-library)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f9805648f10ba86452106570820f9d38e2cf4ce3114963143028428fdf9e9203/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70617365746f2f6e6673652d62657468612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/paseto/nfse-betha)[![Total Downloads](https://camo.githubusercontent.com/fc3a02e4577d63c3e30e1f3b283322f9f07e080df4d69cc216a8c83812b56093/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70617365746f2f6e6673652d62657468612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/paseto/nfse-betha)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

- Wrapper for the non working version of NFSe Betha API in PHP.
- Layout: **Abrasf 2.02** with modified wsdl

A comprehensive PHP library for NFSe Betha integration with XML digital signing support using ICP Brasil certificates.

Features
--------

[](#features)

- 🔐 **Complete XML Digital Signing** with ICP Brasil certificates
- 📋 **Full NFSe Operations**: Generation, Cancellation, and Consultation
- 🛡️ **XML-DSig Compliance** following W3C standards
- 🏛️ **XSD Schema Validation** according to nfse\_v202.xsd
- 🔄 **Automatic SOAP Envelope** creation and handling
- 🌐 **Multi-mode Support**: SoapClient and cURL fallback
- 📊 **Comprehensive Error Handling** and validation
- 📁 **Local WSDL Support** for reliable offline development
- 🚀 **Production Ready** with extensive testing
- 🔒 **Secure Certificate Handling** - accepts certificate content (not file paths)
- 🎯 **Simplified API** - prestador data configured once in constructor
- 🧹 **Clean Code** - no repetitive prestador arrays in method calls

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- OpenSSL extension
- DOM extension
- XML extension
- cURL extension
- SOAP extension
- ICP Brasil certificate in PFX format

Installation
------------

[](#installation)

Install via Composer:

```
composer require paseto/nfse-betha
```

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
