Download the PHP package pauloak/nfse-lajeado without Composer
On this page you can find all versions of the php package pauloak/nfse-lajeado. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pauloak/nfse-lajeado
More information about pauloak/nfse-lajeado
Files in pauloak/nfse-lajeado
Package nfse-lajeado
Short Description Package used to create NFSE on Lajeado-RS.
License MIT
Informations about the package nfse-lajeado
Brief
This package currently supports creating, retrieving and canceling NFS-e (RPS) in the WebService of the city of Lajeado/RS - Brazil.
Package
You can install it through composer
Observation
To be able to use the package, you'll need to have a valid .pfx certificate and the password to access it, it's used to sign the XML before sending it to the city WebService.
Usage
You can check some usage examples in the examples folder, but here's a quick overview.
Create NFS-e
Needs a .pfx certificate
Retrieve NFS-e
Does NOT need a .pfx certificate
After you create an NFS-e, you'll receive a protocol number which you can use to retrieve the NFS-e. Currently, this package only returns the NFS-e number and the verification code.
Cancel NFS-e
Needs a .pfx certificate
To cancel an NFS-e, you'll need the NFS-e number and the certificate.
Responses
All the above requests return a PauloAK\NfseLajeado\Helpers\Response::class
instance, the object looks like this:
Create Response
In case of success, the data variable in the response object should look like this:
Retrieve Response
In case of success, the data variable in the response object should look like this:
You can see all the other info from the NFS-e XML in $response->responseXml
;
Cancel Response
The cancel request doesn't return data info in the response, use the $response->success
variable to check if it was successfully canceled or not.
All versions of nfse-lajeado with dependencies
guzzlehttp/guzzle Version ^7.5
spatie/array-to-xml Version ^3.1
nfephp-org/sped-common Version ^5.1
ext-dom Version *
ext-soap Version *
ext-openssl Version *
ext-mbstring Version *