PHP code example of avlima / php-sigep

1. Go to this page and download the library: Download avlima/php-sigep 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/ */

    

avlima / php-sigep example snippets


$config = new \PhpSigep\Config();
$config->setEnv(\PhpSigep\Config::ENV_PRODUCTION);
$config->setWsdlAtendeCliente('CAMINHO-DO-SEU-ARQUIVO-LOCAL');
\PhpSigep\Bootstrap::start($config);

        new \PhpSigep\Config(
            array(
                'cacheOptions' => array(
                    'storageOptions' => array(
                        'enabled' => true,
                        'ttl' => 60*60*24*7,// Uma semana
                    ),
                ),
                ...
            ),
        );