项目
在 GitHub 查看 
php-any/origami
php-any/origami has 64 GitHub stars and 4 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-16 22:17 UTC. Last push 2026-11-12.
可以做什么
- HTML Embedding: Direct HTML code blocks
- Duck Typing: like keyword for structural matching
- Chinese Keywords: Support for Chinese programming keywords
- Functional Programming: Rich array methods (map, filter, reduce, etc.)
实测星标增长
- 24小时
- 0
- 7天
- 更新延迟
- 15天
- 更新延迟
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
Origami-lang is an innovative hybrid scripting language that deeply integrates PHP's rapid development capabilities with Go's efficient concurrency model. It also incorporates some Java and TypeScript conventions.
网站与应用README_CN.md
原文折言(origami-lang)
折言(origami-lang) 是一门创新性的融合型脚本语言,深度结合 PHP 的快速开发基因与 Go 的高效并发模型。同时还有部分 Java、TypeScript 习惯引入。
⚠️ 当前状态
当前未对代码分支进行任何优化,性能尚未优化。 请作为一个工具使用,请勿用于生产环境。
🚀 核心特征
🎯 Go 反射集成
- 便捷注册: 一键将 Go 函数和结构体注册到脚本域,零配置
- 自动类型转换: Go 和脚本类型之间的无缝集成
- 命名参数: 支持构造函数命名参数
🎨 语法融合
- PHP 兼容: 支持大部分 PHP 语法模式
- Go 并发:
spawn关键字启动协程 - 类型系统: 类型声明和可空类型
- 泛型类: 支持泛型语法
class DB<T>
💡 特殊特性
- HTML 内嵌: 直接内嵌 HTML 代码块
- 鸭子类型:
like关键字进行结构匹配 - 中文关键字: 支持中文编程关键字
- 函数式编程: 丰富的数组方法(
map、filter、reduce等)
🚀 快速开始
git clone https://github.com/php-any/origami.git
cd origami
go build -o origami .
./origami script.zy
📚 文档
详细文档请访问 文档中心:
📝 示例
- examples/spring — Web 应用示例(REST API + SQLite + HTML 页面)
- examples/illuminate-db — 独立使用 illuminate/database(Eloquent ORM),不依赖 Laravel 框架
- examples/laravel — Laravel 10 生态兼容示例
- examples/laravel13 — 官方 Laravel 13 骨架在 Origami 上运行
更多使用模式请参见 测试用例。
💬 讨论群

📄 许可证
MIT 许可证