Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings
/cli-skeletonPublic template

A simple skeleton to build your cli-app using Phel.

License

NotificationsYou must be signed in to change notification settings

phel-lang/cli-skeleton

Repository files navigation

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 onlinux andMac)
  2. Ensure you havecomposer
  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 insrc/
  2. Run your code withvendor/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 intests/
  2. Execute your tests with./vendor/bin/phel test

More about starting with phel

Find more information about how to start with phel ingetting started.


[8]ページ先頭

©2009-2025 Movatter.jp