Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/phel-lang/phel-lang

Phel is a functional programming language that transpiles to PHP. A Lisp dialect inspired by Clojure and Janet.
https://github.com/phel-lang/phel-lang

clojure functional-programming language lisp phel phel-lang php programming-language transpiler

Last synced: 5 days ago
JSON representation

Phel is a functional programming language that transpiles to PHP. A Lisp dialect inspired by Clojure and Janet.

Awesome Lists containing this project

README

        


Phel logo



GitHub Build Status


Scrutinizer Code Quality


Scrutinizer Code Coverage


Psalm Type-coverage Status


Gitter

---

[Phel](https://phel-lang.org/) is a functional programming language that transpiles to PHP.

It is a dialect of [Lisp](https://en.wikipedia.org/wiki/Lisp_(programming_language)) inspired by [Clojure](https://clojure.org/) and [Janet](https://janet-lang.org/).

#### Example

```clojure
# Define a namespace
(ns my\example)

# Define a variable with name "my-name" and value "world"
(def my-name "world")

# Define a function with name "print-name" and one argument "your-name"
(defn print-name [your-name]
(print "hello" your-name))

# Call the function
(print-name my-name)
```

## Documentation

The documentation for Phel can be found on the Phel's website: [https://phel-lang.org](https://phel-lang.org).

## Community

Feel free to ask questions and join discussions on the [Phel Gitter channel](https://gitter.im/phel-lang/community).

## Contribute

Please refer to [CONTRIBUTING.md](https://github.com/phel-lang/phel-lang/blob/main/.github/CONTRIBUTING.md) for information on how to contribute to Phel.