phel-lang / phel-scaffolding
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 3
Forks: 2
Open Issues: 0
pkg:composer/phel-lang/phel-scaffolding
Requires
- php: >=8.0
 - ext-readline: *
 - phel-lang/phel-lang: ^0.10
 
Requires (Dev)
- symfony/var-dumper: ^5.4 || ^6.2
 
This package is auto-updated.
Last update: 2023-05-02 14:59:40 UTC
README
This repository has become too complex for a scaffolding. We believe that spliting this repository into two might be helpful for the two common and different use cases: cli-app or website.
Therefore, we have decided to deprecate this repository in favor of:
- cli-skeleton: A skeleton to build your cli-app using Phel.
 - web-skeleton: A skeleton to build a website using Phel.
 
Phel Scaffolding
Phel is a functional programming language that compiles to PHP.
This repository provides you the basic setup to start coding phel.
Getting started
Requirements
Phel requires at least PHP 8.0 and Composer. You can either use it from your local machine OR using docker.
- This repository contains the basic Dockerfile to run phel.
 
Locally (no Docker)
- Ensure you have PHP >=8.0 (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 
Using Docker
- Clone this repo
 - Build the image | 
docker-compose up -d --build - Go inside the console | 
docker exec -ti -u dev phel_scaffolding bash - Install the dependencies | 
composer install 
Phel code
- Write your phel code in 
src/ - Execute your code with 
./vendor/bin/phel run src/command/main.phel - Or with a PHP server with 
php -S localhost:8080 -t ./src/web 
Tests
- Write your phel tests in 
tests/ - Execute your tests with 
./vendor/bin/phel test 
More about starting with phel
Find more information about how to start with phel in getting started.