PHP code example of malf88 / stock-tesouro-direto

1. Go to this page and download the library: Download malf88/stock-tesouro-direto 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/ */

    

malf88 / stock-tesouro-direto example snippets


$foo = new StockTesouroDireto\StockTesouroDireto('CPF','SENHA');
$foo->findTitulo(\StockTesouroDireto\StockTesouroDireto::TESOURO_IPCA_2045);

$foo->getStatus();
$foo->getTitulos();