PHP Classes

How to Perform PHP Grammar Check on a String Using Mezon Formal Grammar: Validate a string according to your grammar rules

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 47 All time: 10,774 This week: 206Up
Version License PHP version Categories
mezon-formal-grammar 1.0.0MIT/X Consortium ...5Algorithms, PHP 5, Text processing, V..., P...
Description 

Author

This package can validate a string according to your own grammar rules.

It provides classes that can compose a set of text grammar rules.

The package can also validate a given text string according to those rules.

It provides built-in classes that implement several rules to compose a more complex grammar. Currently, it provides classes to:

- Match case sensitive text

- Match text from a given character set

- Match any rule from a set of rules

- Match rules from a complex set of rules

- Match a compound set of rules

- Match an empty string

- Match a set of rules in any order

- Match precisely one character

- Match precisely one character or nothing

- Match one or more characters

- Match one or more characters or nothing

- Etc.

Innovation Award
PHP Programming Innovation award nominee
January 2022
Number 6
Some applications need to parse a text that follows specific grammar rules.

This package allows developers to dynamically create their own grammar rules using classes that implement simple grammar rules.

Then the package can validate a string to check if it complies with the grammar rules defined dynamically.

Manuel Lemos
Picture of Alexey Dodonov
  Performance   Level  
Innovation award
Innovation award
Nominee: 13x

 

  Files folder image Files (41)  
File Role Description
Files folder imageMezon (2 files, 2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file infection.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file psalm-self.xml Data Auxiliary data
Accessible without login Plain text file psalm.xml Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:47
This week:0
All time:10,774
This week:206Up