You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're looking at a PHP library to parse and evaluate text based rules with a Javascript-like syntax. This project was born out of the necessity to evaluate hundreds of rules that were originally written and evaluated in JavaScript, and now needed to be evaluated on the server-side, using PHP.
6
12
@@ -15,12 +21,12 @@ Find me on Twitter: @[nicoSWD](https://twitter.com/nicoSWD)
@@ -148,15 +154,14 @@ If you discover any security related issues, please email security@nic0.me inste
148
154
149
155
## Testing
150
156
151
-
```bash
157
+
```bash
152
158
$ phpunit
153
159
```
154
160
155
161
## Contributing
156
162
Pull requests are very welcome! If they include tests, even better. This project follows PSR-2 coding standards, please make sure your pull requests do too.
157
163
158
164
## To Do
159
-
- Add support for function calls
160
165
- Support for object properties (foo.length)
161
166
- Support for returning actual results, other than true or false
162
167
- Support for array / string dereferencing: "foo"[1]
@@ -166,11 +171,34 @@ Pull requests are very welcome! If they include tests, even better. This project
166
171
- Do math (?)
167
172
- Allow string concatenating with "+"
168
173
- Support for objects {} (?)
169
-
- Support for regular expressions
174
+
- Invalid regex modifiers should not result in an unknown token
175
+
- Duplicate regex modifiers should throw an error
176
+
-~~Add support for function calls~~
177
+
-~~Support for regular expressions~~
170
178
-~~Fix build on PHP 7 / Nightly~~
171
179
-~~Allow variables in arrays~~
180
+
-~~Verify function and method name spelling (.tOuPpErCAse() is currently valid)~~
0 commit comments