PHP code example of dpolocalbrycej / php-unstructured-text-parser

1. Go to this page and download the library: Download dpolocalbrycej/php-unstructured-text-parser 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/ */

    

dpolocalbrycej / php-unstructured-text-parser example snippets



ser = new dpolocalbrycej\UnstructuredTextParser\TextParser('/path/to/templatesDirectory');

$textToParse = 'Text to be parsed fetched from a file, mail, web service, or even added directly to the a string variable like this';

print_r($parser->parseText($textToParse)); //performs brute force parsing against all available templates

print_r($parser->parseText($textToParse, true)); //slower, performs a similarity check on available templates before parsing
shell
$ composer 
shell
$ git clone https://github.com/dpolocalbrycej/php-unstructured-text-parser.git