PHP code example of convenia / textmapable
1. Go to this page and download the library: Download convenia/textmapable 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/ */
convenia / textmapable example snippets
use Convenia\TextMap\Field;
class NameField extends Field
{
protected $name = 'name'
protected $length = 10;
protected $offset = 30;
}
use Convenia\TextMap\Mapable;
/* ... */
$mapable = new Mapable();
$mapable
->readFile($greatFile)
->addField($someFieldsInArray)
->addField($aFieldOutOfAnArray);
use Convenia\TextMap\Mapable;
/* ... */
$map = $mapable->getMap();