├── .github └── workflows │ └── php.yml ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── composer.json ├── composer.lock ├── coveralls.yml ├── docker-compose.yml ├── docker └── xdebug.ini ├── examples ├── run.php ├── templates │ ├── t_0.txt │ ├── t_1.txt │ ├── t_2.txt │ ├── t_3.txt │ ├── t_4.txt │ ├── t_5.txt │ ├── t_6.txt │ ├── t_7.txt │ └── t_8.txt └── test_txt_files │ ├── m_0.txt │ ├── m_1.txt │ ├── m_2.txt │ ├── m_3.txt │ ├── m_4.txt │ ├── m_5.txt │ ├── m_6.txt │ ├── m_7.txt │ └── m_8.txt ├── phpunit.xml ├── src ├── Exception │ ├── InvalidParseFileException.php │ ├── InvalidParsedDataKeyException.php │ ├── InvalidTemplatesDirectoryException.php │ └── UnstructuredTextParserException.php ├── Helper │ └── TemplatesHelper.php ├── ParseResult.php └── TextParser.php └── tests ├── Helper ├── TemplatesHelperTest.php ├── expected_templates │ ├── temp1.txt │ ├── temp2.txt │ ├── temp3.txt │ └── temp4.txt └── helper_templates │ ├── temp1.txt │ ├── temp2.txt │ ├── temp3.txt │ └── temp4.txt ├── ParseResultTest.php ├── TextParserTest.php ├── templates ├── t1webFeedback.txt ├── t2webFeedback.txt ├── t_0.txt └── t_1.txt └── test_txt_files ├── noMatch.txt ├── t0TemplateMatch.txt └── webFeedback.html /.github/workflows/php.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/.github/workflows/php.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/composer.lock -------------------------------------------------------------------------------- /coveralls.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/coveralls.yml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docker/xdebug.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/docker/xdebug.ini -------------------------------------------------------------------------------- /examples/run.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/run.php -------------------------------------------------------------------------------- /examples/templates/t_0.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/templates/t_0.txt -------------------------------------------------------------------------------- /examples/templates/t_1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/templates/t_1.txt -------------------------------------------------------------------------------- /examples/templates/t_2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/templates/t_2.txt -------------------------------------------------------------------------------- /examples/templates/t_3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/templates/t_3.txt -------------------------------------------------------------------------------- /examples/templates/t_4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/templates/t_4.txt -------------------------------------------------------------------------------- /examples/templates/t_5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/templates/t_5.txt -------------------------------------------------------------------------------- /examples/templates/t_6.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/templates/t_6.txt -------------------------------------------------------------------------------- /examples/templates/t_7.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/templates/t_7.txt -------------------------------------------------------------------------------- /examples/templates/t_8.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/templates/t_8.txt -------------------------------------------------------------------------------- /examples/test_txt_files/m_0.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/test_txt_files/m_0.txt -------------------------------------------------------------------------------- /examples/test_txt_files/m_1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/test_txt_files/m_1.txt -------------------------------------------------------------------------------- /examples/test_txt_files/m_2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/test_txt_files/m_2.txt -------------------------------------------------------------------------------- /examples/test_txt_files/m_3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/test_txt_files/m_3.txt -------------------------------------------------------------------------------- /examples/test_txt_files/m_4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/test_txt_files/m_4.txt -------------------------------------------------------------------------------- /examples/test_txt_files/m_5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/test_txt_files/m_5.txt -------------------------------------------------------------------------------- /examples/test_txt_files/m_6.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/test_txt_files/m_6.txt -------------------------------------------------------------------------------- /examples/test_txt_files/m_7.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/test_txt_files/m_7.txt -------------------------------------------------------------------------------- /examples/test_txt_files/m_8.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/examples/test_txt_files/m_8.txt -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Exception/InvalidParseFileException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/src/Exception/InvalidParseFileException.php -------------------------------------------------------------------------------- /src/Exception/InvalidParsedDataKeyException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/src/Exception/InvalidParsedDataKeyException.php -------------------------------------------------------------------------------- /src/Exception/InvalidTemplatesDirectoryException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/src/Exception/InvalidTemplatesDirectoryException.php -------------------------------------------------------------------------------- /src/Exception/UnstructuredTextParserException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/src/Exception/UnstructuredTextParserException.php -------------------------------------------------------------------------------- /src/Helper/TemplatesHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/src/Helper/TemplatesHelper.php -------------------------------------------------------------------------------- /src/ParseResult.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/src/ParseResult.php -------------------------------------------------------------------------------- /src/TextParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/src/TextParser.php -------------------------------------------------------------------------------- /tests/Helper/TemplatesHelperTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/Helper/TemplatesHelperTest.php -------------------------------------------------------------------------------- /tests/Helper/expected_templates/temp1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/Helper/expected_templates/temp1.txt -------------------------------------------------------------------------------- /tests/Helper/expected_templates/temp2.txt: -------------------------------------------------------------------------------- 1 | Simple Template 01 (?.*) -------------------------------------------------------------------------------- /tests/Helper/expected_templates/temp3.txt: -------------------------------------------------------------------------------- 1 | Template with specified pattern (?[0-9]+) -------------------------------------------------------------------------------- /tests/Helper/expected_templates/temp4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/Helper/expected_templates/temp4.txt -------------------------------------------------------------------------------- /tests/Helper/helper_templates/temp1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/Helper/helper_templates/temp1.txt -------------------------------------------------------------------------------- /tests/Helper/helper_templates/temp2.txt: -------------------------------------------------------------------------------- 1 | Simple Template 01 {%variable%} -------------------------------------------------------------------------------- /tests/Helper/helper_templates/temp3.txt: -------------------------------------------------------------------------------- 1 | Template with specified pattern {%variable:[0-9]+%} -------------------------------------------------------------------------------- /tests/Helper/helper_templates/temp4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/Helper/helper_templates/temp4.txt -------------------------------------------------------------------------------- /tests/ParseResultTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/ParseResultTest.php -------------------------------------------------------------------------------- /tests/TextParserTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/TextParserTest.php -------------------------------------------------------------------------------- /tests/templates/t1webFeedback.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/templates/t1webFeedback.txt -------------------------------------------------------------------------------- /tests/templates/t2webFeedback.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/templates/t2webFeedback.txt -------------------------------------------------------------------------------- /tests/templates/t_0.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/templates/t_0.txt -------------------------------------------------------------------------------- /tests/templates/t_1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/templates/t_1.txt -------------------------------------------------------------------------------- /tests/test_txt_files/noMatch.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/test_txt_files/noMatch.txt -------------------------------------------------------------------------------- /tests/test_txt_files/t0TemplateMatch.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/test_txt_files/t0TemplateMatch.txt -------------------------------------------------------------------------------- /tests/test_txt_files/webFeedback.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aymanrb/php-unstructured-text-parser/HEAD/tests/test_txt_files/webFeedback.html --------------------------------------------------------------------------------