PHP code example of uspdev / wsfoto

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

    

uspdev / wsfoto example snippets



namespace Meu\Lindo\App;
FOTO_USER=SEU_USERFFLCH');
putenv('WSFOTO_PASS=SEU_SECRET');

$foto = Wsfoto::obter('5385361');
header('Content-Type: image/png');
echo base64_decode($foto);