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
// Parsing and evaluation results will be cached automatically
108
-
$expression = $cel->parseString('1 + 2');
109
-
$receipt = $cel->run($expression);
110
-
```
48
+
See the [examples/](examples/) directory for more usage examples.
111
49
112
50
## Specification Compliance
113
51
114
-
CEL-PHP is a **production-ready, spec-compliant** implementation of the Common Expression Language specification. All core language features, operators, macros, and standard library functions are fully implemented and tested.
- Extension system for custom functions and operators
148
-
- Value resolvers for custom PHP types
149
-
- Parse and evaluation result caching (PSR-16 compatible)
150
-
- Comprehensive exception handling with source span information
151
-
152
-
### 🎯 Production Ready for 1.0.0
153
-
154
-
This implementation is **ready for production use** and meets all requirements for a 1.0.0 release. The following are potential future enhancements that could improve performance or developer experience, but are **not required** for the core functionality:
155
-
156
-
-**Compile-time Type Checking**: Static analysis of expressions before runtime (nice-to-have for catching errors earlier)
157
-
-**Stack-based Interpreter**: Alternative execution engine for improved performance (current tree-walking interpreter is sufficient for most use cases)
158
-
-**Protocol Buffer Integration**: Native protobuf support (manual message construction works well)
159
-
-**Conformance Test Suite**: Official CEL conformance tests (current test suite of 1,080+ tests provides comprehensive coverage)
160
-
161
-
**Note**: Performance benchmarks show that complex expressions evaluate in ~0.001 seconds in production environments, which is acceptable for the vast majority of use cases.
52
+
CEL-PHP is a **production-ready, fully spec-compliant** implementation of the [Common Expression Language specification](https://github.com/google/cel-spec). All core language features, operators, macros, and standard library functions are implemented and tested.
0 commit comments