Phel is a functional programming language that compiles to PHP.
This repository provides you the basic setup to start coding a website using phel.
Phel requires at least PHP 8.2 and Composer.
- Ensure you have PHP >=8.2 (Some help about how to install multiple PHP versions locally on linux and Mac)
- Ensure you have composer
- Clone this repo
- Install the dependencies |
composer install
- Clone this repo
- Build the image |
docker-compose up -d --build
- Go inside the console |
docker exec -ti -u dev phel_web_skeleton bash
- Install the dependencies |
composer install
- Write your phel code in
src/
- Run your web server with
composer run:dev
: it will recompile the code on every requestcomposer run:prod
: it will run the same compiled code on every request
- Write your phel tests in
tests/
- Execute your tests with
composer test
Find more information about how to start with phel in getting started.