phel-lang / phel-lang
Phel is a functional programming language that transpiles to PHP
Installs: 1 845
Dependents: 13
Suggesters: 0
Security: 0
Stars: 424
Watchers: 11
Forks: 22
Open Issues: 17
Requires
- php: >=8.2
- gacela-project/gacela: ^1.8
- phpunit/php-timer: ^5.0
- symfony/console: ^7.1
Requires (Dev)
- ext-readline: *
- friendsofphp/php-cs-fixer: ^3.62
- infection/infection: ^0.27
- phpbench/phpbench: ^1.3
- phpmetrics/phpmetrics: ^2.8
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^9.6
- psalm/plugin-phpunit: ^0.19
- rector/rector: ^1.2
- symfony/var-dumper: ^7.1
- vimeo/psalm: ^5.25
- dev-main
- v0.15.2
- v0.15.1
- v0.15.0
- v0.14.1
- v0.14.0
- v0.13.0
- v0.12.0
- v0.11.0
- v0.10.1
- v0.10.0
- v0.9.0
- v0.8.0
- v0.7.0
- v0.6.0
- v0.5.0
- v0.4.0
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.0
- dev-run-separated-process-api-facade-test
- dev-update-dependencies
- dev-dependabot/composer/rector/rector-1.2.4
- dev-dependabot/composer/friendsofphp/php-cs-fixer-3.64.0
- dev-dependabot/composer/symfony/var-dumper-7.1.4
- dev-dependabot/composer/phpstan/phpstan-1.12.0
- dev-dependabot/composer/symfony/console-7.1.4
- dev-feat/add-macroexpand
- dev-feat/improve-contains
- dev-feat/phar
This package is auto-updated.
Last update: 2024-09-02 08:41:27 UTC
README
Phel is a functional programming language that transpiles to PHP.
It is a dialect of Lisp inspired by Clojure and Janet.
Example
# 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.
Community
Feel free to ask questions and join discussions on the Phel Gitter channel.
Contribute
Please refer to CONTRIBUTING.md for information on how to contribute to Phel.