PHP code example of fcunha / proceda
1. Go to this page and download the library: Download fcunha/proceda 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/ */
fcunha / proceda example snippets
use App\V30\Doccob;
$file = <<<CONTENT
000 33722100 2406211107COB240611070
350COBRA240611070
35112260426000325abcdefghijklmnopqrstuvwxyzabcdefghijklmno
35200000002090 00002323661606202101072021000000002281304BCO00000000027375700000000000000000000000000000000000000Banco Itau Steel 00000000000000000I
35300000002104 0484880000000002752980906202138717511000100594134720001198201275000014833210682012750000148570040000484881903918263
3541 0002241909062021305000000000002897500038717511000100
CONTENT;
$file = explode(PHP_EOL, $file);
$parser = new Doccob();
$content = $parser->decode($file);
print_r($content);