Download the PHP package banelsems/lara-sgmef-qr without Composer
On this page you can find all versions of the php package banelsems/lara-sgmef-qr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download banelsems/lara-sgmef-qr
More information about banelsems/lara-sgmef-qr
Files in banelsems/lara-sgmef-qr
Package lara-sgmef-qr
Short Description Package for integrating with the SGMEF API Benin and generating QR codes in Laravel.
License MIT
Homepage https://github.com/banelsems/lara-sgmef-qr
Informations about the package lara-sgmef-qr
LaraSgmefQR
LaraSgmefQR is a Laravel package that provides a way to normalize invoice data from the API. It is designed for integrating with the SGMEF API in Benin and generating QR codes in Laravel.
Installation
To install LaraSgmefQR, you can run the following command:
Usage
To use LaraSgmefQR, you can first get the InvoiceNormalize
class from the service container:
Once you have the InvoiceNormalize
class, you can use it to normalize the invoice data from the API:
The normalize
method returns a normalized invoice object. The normalized invoice object contains the following properties:
dateTime
: The date and time of the invoice.qrCode
: The QR code of the invoice.codeMECeFDGI
: The code of the invoice.counters
: The counters of the invoice.nim
: The nim of the invoice.errorCode
: The error code of the invoice.errorDesc
: The error description of the invoice.
Testing
To run the tests for LaraSgmefQR, you can run the following command:
Contributing
Contributions to LaraSgmefQR are welcome. Please open a pull request on GitHub if you have any changes or improvements.
License
LaraSgmefQR is licensed under the MIT License.