PHP code example of advans / php-api-catalogos-cfdi

1. Go to this page and download the library: Download advans/php-api-catalogos-cfdi 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/ */

    

advans / php-api-catalogos-cfdi example snippets

`
$config = new \Advans\Api\CatalogosCFDI\Config([
    'base_url' => '**************************',
    'key' => '**********************'
]);

$servicio = new \Advans\Api\CatalogosCFDI\CatalogosCFDI($config);

$item = $servicio->getItem('c_CodigoPostal', '97000', '2022-01-01');