prolic/fpp

Functional PHP Preprocessor

Maintainers

Details

github.com/prolic/fpp

Source

Issues

Fund package maintenance!
Patreon

Installs: 88 844

Dependents: 0

Suggesters: 0

Security: 0

Stars: 285

Watchers: 16

Forks: 26

Open Issues: 5

v0.1.0 2020-04-10 16:04 UTC

This package is auto-updated.

Last update: 2024-12-10 14:05:12 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.

Build Status Coverage Status

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

See the docs here

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.