Phel v0.36.0 – Lisp on PHP, now with numeric tower and first-class Vars
Summary
Phel v0.36.0 is released, bringing a numeric tower and first-class Vars to the Lisp-inspired functional language that compiles to PHP.
View Cached Full Text
Cached at: 05/11/26, 09:49 AM
phel-lang/phel-lang
Source: https://github.com/phel-lang/phel-lang
Functional, Lisp-inspired language compiling to PHP. Macros, persistent data structures, REPL.
Example
(ns my.example)
(defn greet [name] (str "Hello, " name "!"))
(println (greet "Phel"))
;; => Hello, Phel!
More examples →
|
Data pipeline
|
HTTP response
|
|
Macros
|
PHP interop
|
Getting Started
composer require phel-lang/phel-lang
./vendor/bin/phel init # add `--minimal` for a single-file layout
Scaffolds phel-config.php, src/phel/main.phel, tests/phel/main_test.phel.
./vendor/bin/phel run src/phel/main.phel # run
./vendor/bin/phel test # tests
./vendor/bin/phel repl # REPL
./vendor/bin/phel build # compile to PHP
Eval inline or via stdin:
./vendor/bin/phel eval '(+ 1 2)' # prints 3
echo '(println "hi")' | ./vendor/bin/phel eval -
./vendor/bin/phel eval - < script.phel
Documentation
- Quick Start — install, REPL, first script (5 min)
- Documentation Index — every guide, grouped by purpose
- phel-lang.org — tutorials, exercises, blog
- Repository Guidelines · Packagist
AI coding agents
- resources/agents/ — Claude Code, Cursor, Codex, Gemini, Copilot, Aider
./vendor/bin/phel agent-install [platform] [--all]— install skill file for your agent
Build PHAR
./build/phar.sh produces build/out/phel.phar.
Contribute
Setup and workflow: CONTRIBUTING.md. Architecture and review expectations: AGENTS.md.
Similar Articles
Blaise v0.10.0: Native Back End, Threads and Incremental Compilation
Blaise v0.10.0 adds native back end support via QBE, threading, and incremental compilation, advancing this modern Object Pascal compiler toward self-hosting and broader platform support.
Logic for Programmers v0.15, Livecoding
Hillel Wayne announces version 0.15 release candidate of his book 'Logic for Programmers', and highlights a livecoding meetup featuring Strudel and CLAVIER-36 for music programming.
PHP's Oddities
A developer reflects on PHP's oddities after five years of use, focusing on the quirks of its array implementation and type system.
Rhombus v1.0: A Racket flavored language with syntax
Rhombus v1.0, a new extensible programming language built on Racket with conventional syntax and powerful macro facilities, has been released.
Pyrefly v1.0 is here
Pyrefly, an open-source Python type checker and language server, reaches v1.0, marking production readiness with significant performance improvements and adoption by major codebases like PyTorch and NumPy.