Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

phel-lang/web-skeleton

Open more actions menu

Repository files navigation

Phel Web Skeleton

Phel is a functional programming language that compiles to PHP.

This repository provides you the basic setup to start coding a website using phel.

Getting started

Requirements

Phel requires at least PHP 8.3.

Locally (no Docker)

  1. Ensure you have PHP >=8.3 (Some help about how to install multiple PHP versions locally on linux and Mac)
  2. Ensure you have composer
  3. Clone this repo
  4. Install the dependencies | composer install

Using Docker

  1. Clone this repo
  2. Build the image | docker-compose up -d --build
  3. Go inside the console | docker exec -ti -u dev phel_web_skeleton bash
  4. Install the dependencies | composer install

Phel code

  1. Write your phel code in src/
  2. Run your web server with
    • composer run:dev: it will recompile the code on every request
    • composer run:prod: it will run the same compiled code on every request

Tests

  1. Write your phel tests in tests/
  2. Execute your tests with composer test

More about starting with phel

Find more information about how to start with phel in getting started.

About

A simple skeleton to build a website using Phel.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.