PHP code example of notafiscalsp / notafiscal-pdf

1. Go to this page and download the library: Download notafiscalsp/notafiscal-pdf library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

notafiscalsp / notafiscal-pdf example snippets


    use NfSPPDF\NfSPPDF;

    $file = NfSPPDF::getNfHtml('0265489', '44545455', 'S2A2D54');
    echo $file;

    use NfSPPDF\NfSPPDF;

    $file = NfSPPDF::getNfPdf('0265489', '44545455', 'S2A2D54');
    file_put_contents('/path/to/storage/lala.pdf', $file);