phel-lang/web-skeleton
Composer 安装命令:
composer create-project phel-lang/web-skeleton
包简介
A minimalistic skeleton to build your web-app using Phel Lang.
README 文档
README
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 and Composer.
Locally (no Docker)
- Ensure you have PHP >=8.3 (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_web_skeleton bash - Install the dependencies |
composer install
Phel code
- 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
Tests
- Write your phel tests in
tests/ - Execute your tests with
composer test
More about starting with phel
Find more information about how to start with phel in getting started.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-06