Stringtemplate
PHP Port of StringTemplate library
Install / Use
/learn @ewiger/StringtemplateREADME
This is the port of ANTLR StringTemplate engine 3.2.1 by Terence Parr into PHP. The best way to check what is working is to run the unit tests.
php test.php
Library requires the following frameworks:
- PHPUnit 3.4
- Zend Framework 1.10
- Antlr PHP Runtime 3.2
and above.
To generate grammar - get the latest Antlr runtime implementation for PHP. It must contain an antlr-tool launching script, which you can invoke as
../antlr-php-runtime/antlr-tool.sh src/php/Antlr/StringTemplate/Language/Group.g
an so on.
You must also extend your PHP include path with 'Antlr/Runtime/..' code in order to use StringTemplate.
-- wbr, Y.Y.
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
