prolic / fpp
Functional PHP Preprocessor
Fund package maintenance!
Patreon
Installs: 88 811
Dependents: 0
Suggesters: 0
Security: 0
Stars: 285
Watchers: 16
Forks: 26
Open Issues: 5
Requires
- php: ^7.1
Requires (Dev)
- mikey179/vfsstream: ^1.6.5
- phpstan/phpstan: ^0.12.2
- phpunit/phpunit: ^8.2
- prooph/php-cs-fixer-config: ^0.3
- satooshi/php-coveralls: ^2.0
This package is auto-updated.
Last update: 2024-10-10 13:42:44 UTC
README
Functional PHP Preprocessor - Immutable data type generator
This library can generate immutable data types based on fpp definitions. The syntax is inspired by Haskell.
Sponsor
If you want to support my work, become a patron at patreon.com/prolic.
Credits
Marcello Duarte created the ParserCombinators project in 2017. The rewrite of this library is heavily inspired by it and reuses some of its base functions.
Docs
Install
composer require prolic/fpp dev-master
Usage
Disable xdebug or increase xdebug.max_nesting_level in your php.ini file.
php vendor/bin/fpp.php <source dir or file>
Generate configuration
php vendor/bin/fpp.php --gen-config
You can then modify the config file to adjust to your needs.
Changes from 0.1.0 Release
This library has been rewritten from scratch. If you want to use the old version, pin your composer requirement to 0.1.0.
The master branch is not compatible at all.