https://github.com/siguici/phi
A modern, high-performance scripting language with PHP-inspired syntax and TypeScript-like strong typing.
https://github.com/siguici/phi
general-purpose programming-language scripting-language siguici siguilang web-development
Last synced: about 7 hours ago
JSON representation
A modern, high-performance scripting language with PHP-inspired syntax and TypeScript-like strong typing.
- Host: GitHub
- URL: https://github.com/siguici/phi
- Owner: siguici
- License: mit
- Created: 2025-07-18T12:49:13.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2026-06-28T10:01:53.000Z (1 day ago)
- Last Synced: 2026-06-28T11:19:35.437Z (1 day ago)
- Topics: general-purpose, programming-language, scripting-language, siguici, siguilang, web-development
- Language: V
- Homepage:
- Size: 141 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
**Phi** is a modern, high-performance programming language
designed for simplicity, clarity, and expressive power.
Built with β€οΈ in [Vlang](https://vlang.io).
[](https://github.com/siguici/phi/actions)
---
## π Features
- β
Lightweight and fast by design
- β
Optional, strong, or dynamic typing
- β
Clean and minimal syntax
- β
`.phi` source files
- β
Web and general-purpose scripting
- β
Built-in HTTP server
- β
Native routing, templating, and middleware
---
## π Vision
**Phi** redefines how code feels to write and read β
expressive, concise, and powerful.
Its architecture is designed for **multi-runtime execution**,
paving the way for native support in environments like TypeScript, PHP, and Vlang.
---
## π¦ Installation
> β οΈ **Requires [Vlang](https://vlang.io)**
```bash
git clone https://github.com/siguici/phi
cd phi
v src -o phi
./phi examples
````
Or build for production:
```bash
v -prod src -o phi
./phi examples
```
## π§ͺ Quick Start
Create a file `hello.phi`:
```phi
string name = scan 'Enter your name: '
if name {
print 'Hello ', name, '!'
} else {
print "Hello World!"
}
```
Then run it:
```bash
./phi run hello
```
---
## π Language Overview
**Phi** combines clarity and expressiveness in a clean syntax:
```phi
string hello(string name) {
return 'Hello ', name, '!'
}
print hello("World")
```
### Language Features
- `print`, `echo`
- Functions, conditionals, and loops
- Optional `$` variable prefix
- Inline templates (HTML + Phi)
- Optional and strong typing
- Built-in access to HTTP and environment data
---
## π§ Roadmap
- [x] Core parser and runtime
- [x] Built-in HTTP server
- [x] Template rendering
- [ ] Ahead-of-time compilation
- [ ] Optional VM execution model
- [ ] Extended standard library
- [ ] WebSocket support
- [ ] Session & authentication modules
- [ ] CLI tooling for scaffolding and dev mode
---
## π§ Philosophy
**Phi** is about writing **natural, structured, and elegant code**.
- No tags
- No semicolons
- Just code that feels right
A minimal language for a maximal experience.
> Designed to be **clear to read**, **pleasant to write**, and **powerful to run**.
---
## π€ Contributing
We welcome contributions and ideas!
- π Fork this repo
- π§ Make improvements
- β
Test (`v test .`)
- π¬ Open a pull request
---
## π License
[MIT](./LICENSE.md) Β© [Sigui KessΓ© Emmanuel](https://github.com/siguici)