PHP code example of afipws / afip
1. Go to this page and download the library: Download afipws/afip 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/ */
afipws / afip example snippets
$config = [
'CUIT' => 20200083394,
'production' => true,
'cert' => '/user/local/cert',
'key' => '/user/local/key',
'token_dir' => '/user/local/token_dir/'
];
$this->afip = new \AfipWS\Afip\Afip($config);