PHP Classes

How to Use a PHP Formula Validator to Check if the Formula Syntax is Correct Using the Package Formula Tools PHP: Validate a formula from given token strings

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-12-21 (6 hours ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
formula-tools-php 1.0MIT/X Consortium ...7Validation, Math, PHP 7
Description 

Author

This package can validate a formula from given token strings.

It can take an array of token strings by checking formula grammar rules.

Currently, it supports validating formulas that have:

- Brackets to group expressions

- Operations using unary and binary operations

Picture of Smoren  Freelight
  Performance   Level  
Name: Smoren Freelight <contact>
Classes: 39 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 16x

Documentation

PHP Formula Tools

Packagist PHP Version Support Scrutinizer Code Quality Coverage Status Build and test License: MIT

How to install to your project

composer require smoren/formula-tools

Unit testing

composer install
composer test-init
composer test

Standards

PHP Formula Tools conforms to the following standards:

License

PHP Formula Tools is licensed under the MIT License.


  Files folder image Files (23)  
File Role Description
Files folder image.github (1 directory)
Files folder imagesrc (3 directories)
Files folder imagetests (3 files, 2 directories)
Accessible without login Plain text file .scrutinizer.yml Data Auxiliary data
Accessible without login Plain text file codeception.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpcs.xml Data Auxiliary data
Accessible without login Plain text file phpstan.neon Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (23)  /  .github  
File Role Description
Files folder imageworkflows (1 file)

  Files folder image Files (23)  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file test_master.yml Data Auxiliary data

  Files folder image Files (23)  /  src  
File Role Description
Files folder imageExceptions (6 files)
Files folder imageHelpers (1 file)
Files folder imageValidators (1 file)

  Files folder image Files (23)  /  src  /  Exceptions  
File Role Description
  Plain text file BracketsException.php Class Class source
  Plain text file InappropriateTokenException.php Class Class source
  Plain text file InappropriateTokenPairException.php Class Class source
  Plain text file InvalidTokenException.php Class Class source
  Plain text file SyntaxException.php Class Class source
  Plain text file TokenException.php Class Class source

  Files folder image Files (23)  /  src  /  Helpers  
File Role Description
  Plain text file LoopHelper.php Class Class source

  Files folder image Files (23)  /  src  /  Validators  
File Role Description
  Plain text file LogicFormulaValidator.php Class Class source

  Files folder image Files (23)  /  tests  
File Role Description
Files folder imageunit (3 files)
Files folder image_support (1 file)
  Accessible without login Plain text file coding_standard.xml Data Auxiliary data
  Accessible without login Plain text file unit.suite.yml Data Auxiliary data
  Accessible without login Plain text file _bootstrap.php Aux. Configuration script

  Files folder image Files (23)  /  tests  /  unit  
File Role Description
  Plain text file ExceptionsTest.php Class Class source
  Plain text file LogicFormulaValidatorTest.php Class Class source
  Plain text file LoopHelperTest.php Class Class source

  Files folder image Files (23)  /  tests  /  _support  
File Role Description
  Plain text file UnitTester.php Class Class source

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  
 100%
Total:0
This week:0