Phel is a functional programming language that transpiles to PHP.
It is a dialect of Lisp inspired by Clojure and Janet, designed for building robust applications in the PHP ecosystem.
# Define a namespace
(ns my\example)
# Define a variable with name "my-name" and value "world"
(def my-name "world")
# Define a function with name "print-name" and one argument "your-name"
(defn print-name [your-name]
(print "hello" your-name))
# Call the function
(print-name my-name)
- Website
- Features, documentation, exercises and blog
- Installation
- Quick start with scaffolding or manual installation
- Packagist
- The PHP Package Repository
- Internals
- Additional documentation about the compiler internals
Feel free to ask questions and join discussions on the Phel Gitter channel.
Please refer to CONTRIBUTING.md for information on how to contribute to Phel.