Jose Reales

Phel, a native Lisp for PHP

Can learning Lisp make you a better PHP developer? Discover Phel, a functional language that transpiles to PHP with 100% ecosystem interoperability.

Phel, a native Lisp for PHP
#1about 2 minutes

Introducing Phel, a Lisp dialect for the PHP ecosystem

Phel is a functional programming language inspired by Clojure that transpiles directly to PHP, making it fully interoperable.

#2about 1 minute

Comparing functional and object-oriented paradigms

Functional programming emphasizes immutable data and declarative code with no side effects, contrasting with object-oriented programming's mutable state.

#3about 1 minute

Understanding the basic syntax of Phel with an example

A "Hello World" example demonstrates Phel's Lisp-like syntax, including namespaces, defining constants, and creating and calling functions.

#4about 2 minutes

Exploring Phel's data types and control flow statements

Phel includes basic types, persistent data structures like lists and maps, and control flow statements such as `if`, `case`, and `loop`.

#5about 1 minute

Using native PHP functions and classes within Phel

The `php/` prefix allows full interoperability, enabling the use of any native PHP function, class, or object directly from Phel code.

#6about 2 minutes

A live demo of a snake game built with Phel

A demonstration showcases a complete snake game running in the terminal, built entirely in Phel to illustrate its practical application.

#7about 1 minute

The project's goal and community resources for learning

Phel aims to introduce functional programming concepts to PHP developers rather than replace PHP, with resources available on GitHub and Gitter.

Related jobs
Jobs that call for the skills explored in this talk.
Name of

Name of

Remote
Intermediate
PHP
Java
+1

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
All the videos of Halfstack London 2024!
Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
All the videos of Halfstack London 2024!
DC
Daniel Cranney
The Best Programming Language for Beginners to Learn in 2025
IntroductionLet’s be honest, learning to code isn’t easy. Regardless of which language you decide to adopt, there will be hurdles to overcome, from learning syntax and concepts, encountering bugs that seem impossible to fix, struggling to pick up new...
The Best Programming Language for Beginners to Learn in 2025

From learning to earning

Jobs that call for the skills explored in this talk.

PHP Engineer

Bitpanda
Vienna, Austria

Intermediate
PHP
MySQL
Laravel