phel-lang/cli-skeleton 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phel-lang/cli-skeleton

Composer 安装命令:

composer create-project phel-lang/cli-skeleton

包简介

A minimalistic skeleton to build your cli-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 phel.

Getting started

Requirements

Phel requires at least PHP 8.3 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)

  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_cli_skeleton bash
  4. Install the dependencies | composer install

Phel code

  1. Write your phel code in src/
  2. Run your code with vendor/bin/phel run src/main.phel

Or run the executable transpiled PHP result

  1. vendor/bin/phel build
  2. php out/main.php

Tests

  1. Write your phel tests in tests/
  2. 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.

统计信息

  • 总下载量: 61
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-06