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.
The codebase has not been optimized yet, and performance is not optimized. Please use it as a tool, do not use it in production environments.
- Easy Registration: Register Go functions and structs to the script domain with zero configuration
- Automatic Type Conversion: Seamless integration between Go and script types
- Named Parameters: Support for constructor named parameters
- PHP Compatibility: Supports most PHP syntax patterns
- Go Concurrency:
spawnkeyword for coroutines - Type System: Type declarations and nullable types
- Generic Classes: Support for generic syntax
class DB<T>
- HTML Embedding: Direct HTML code blocks
- Duck Typing:
likekeyword for structural matching - Chinese Keywords: Support for Chinese programming keywords
- Functional Programming: Rich array methods (
map,filter,reduce, etc.)
git clone https://github.com/php-any/origami.git
cd origami
go build -o origami .
./origami script.zyFor detailed documentation, please visit the Documentation Center:
- Quick Start - Get started in 5 minutes
- Language Reference - Complete language documentation
- Syntax - Language syntax
- Data Types - Supported data types
- Functions - Function definitions
- Classes - Object-oriented programming
- Array Methods - Array operations
- Go Integration - Integrate Go functions and structs
- Database Module - Complete ORM documentation
- Standard Library - Built-in library reference
See the examples directory for complete examples, or visit the test cases for more usage patterns.
MIT License
