PHP code example of konta / sunat
1. Go to this page and download the library: Download konta/sunat 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/ */
konta / sunat example snippets
sh
("sunat.php");
$cliente = new Sunat();
$ruc="10442747950";
echo json_encode( $cliente->BuscaDatosSunat($ruc), JSON_PRETTY_PRINT );