-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better field type checking It refs #17
- Loading branch information
Showing
3 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ PHP Mathematical expression parser and evaluator | |
|
||
* Fast evaluation | ||
* Compact codebase | ||
* Operators: + - * / ^ | ||
* Operators: + - * / ^ % | ||
* Brackets, nested, unlimited levels | ||
* Variables: predefined or estimated dynamically | ||
* Functions: predefined or connected dynamically | ||
|
@@ -20,7 +20,7 @@ PHP Mathematical expression parser and evaluator | |
|
||
## Installation | ||
|
||
Run | ||
Using [Composer](https://getcomposer.org) run | ||
|
||
```bash | ||
$ composer require madorin/matex | ||
|
@@ -29,7 +29,7 @@ $ composer require madorin/matex | |
See [MANUAL.md](doc/MANUAL.md) for more details and options. | ||
|
||
|
||
## Examples | ||
## Usage | ||
|
||
Basic: | ||
```php | ||
|
@@ -172,4 +172,4 @@ Dorin Marcoci - <[email protected]> - <https://www.marcodor.com> | |
|
||
## License | ||
|
||
Matex is distributed under MIT license. See [LICENSE.md](LICENSE.md) for more details. | ||
Matex is distributed under MIT license. See [license](LICENSE.md) for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,19 @@ echo $evaluator->execute('1 + 2'); | |
|
||
## Usage | ||
|
||
See [examples/README.md](../examples/README.md) for code samples. | ||
See [examples](../examples/README.md) for code samples. | ||
|
||
|
||
## Operators | ||
|
||
Matex supports the following operators: | ||
|
||
+ Addition | ||
- Subtraction | ||
* Multiplication | ||
/ Division | ||
^ Exponentiation | ||
% Modulus | ||
|
||
|
||
## Author | ||
|
@@ -56,4 +68,4 @@ Dorin Marcoci - <[email protected]> - <https://www.marcodor.com> | |
|
||
## License | ||
|
||
Matex is distributed under MIT license. See [LICENSE.md](../LICENSE.md) for more details. | ||
Matex is distributed under MIT license. See [license](../LICENSE.md) for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters