Discover and explore top open-source AI tools and projects—updated daily.
phel-langA Lisp-inspired language compiling to PHP
Top 61.1% on SourcePulse
Summary
Phel is a functional, Lisp-inspired language that compiles to PHP, aiming to bring Clojure-like features such as macros and persistent data structures to the PHP ecosystem. It enables developers to adopt more robust, declarative, and expressive programming styles within the widely-used PHP environment.
How It Works
Phel translates Lisp-like syntax and functional programming paradigms into standard PHP code. Its design emphasizes immutability and declarative patterns, supported by macros for metaprogramming and persistent data structures for efficient state management. This compilation strategy allows developers to write code in a functional style while leveraging the PHP runtime's broad compatibility and performance.
Quick Start & Requirements
composer require phel-lang/phel-lang./vendor/bin/phel init./vendor/bin/phel run src/phel/main.phel./vendor/bin/phel test./vendor/bin/phel repl./vendor/bin/phel build (compiles to PHP)./vendor/bin/phel eval../vendor/bin/phel init --minimal for single-file projects.Highlighted Details
->>).Maintenance & Community
The provided README snippet does not detail specific maintainers, sponsorships, or community channels. It directs potential contributors to CONTRIBUTING.md.
Licensing & Compatibility
The specific license is not mentioned in the provided text, making commercial use compatibility uncertain.
Limitations & Caveats
Phel's runtime behavior is dependent on the generated PHP code and the PHP interpreter. Specific limitations regarding unsupported PHP versions or complex interop edge cases are not detailed. The absence of explicit licensing information presents a potential adoption risk.
12 hours ago
Inactive
HKUDS