Download the PHP package kodhe/parser without Composer
On this page you can find all versions of the php package kodhe/parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package parser
CodeIgniter 3 Parser - Modular Refactoring
A template parser library for CodeIgniter 3, refactored into a modular structure while keeping the original API intact.
Structure
API (100% CI3 Compatible)
Features
Patterns
- Interpreter: TemplateCompiler interprets tokens
- Strategy: Lexer, Compiler and Cache are swappable
- Factory: ParserFactory creates instances
- Builder: Fluent interface on ParserFactory
- Dependency Injection: Constructor injection in Parser
Performance
- Compiled template cache: Compilation results are cached
- Lazy compile: The cache is checked before compiling
- Token reuse: Tokens can be recreated efficiently
Testing
- Variable substitution
- Loop constructs
- Nested loops
- Conditional blocks
- Include directives
- Cache behavior
- Custom delimiters
Installation
Running Tests
Usage Examples
Variables
Loops
Nested Loops
Conditionals
Includes
Custom Delimiters
Factory Pattern
Cache Control
Dot Notation
PSR-4 Autoloading
Requirements
- PHP >= 7.2
- PHPUnit >= 8.0 (for testing)
License
MIT
All versions of parser with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
The package kodhe/parser contains the following files
Loading the files please wait ...