PHP Package: functional-php/fantasy-land

Functional PHP library for algebraic JavaScript concepts in fantasy-land specification

Current Version: 1.0.0
Last Updated: 2018-02-18
PHP Requirement: >=7.1
Dependencies:
functional-php/fantasy-land-core
functional-php/fantasy-land-laws
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Fantasy-land PHP library facilitates algebraic structures and operations conforming to the fantasy-land specification. It provides a robust foundation for functional programming in PHP, empowering developers to employ monads, functors, and other higher-order abstractions effectively.

🔗 View on GitHub

Download Latest Version: 1.0.0

Download Download v1.0.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/functional-php/fantasy-land/1.0.0/loader.php';
require_once 'libs/functional-php/fantasy-land-core/{lib_version}/loader.php';
require_once 'libs/functional-php/fantasy-land-laws/{lib_version}/loader.php';

use FantasyLand\Setoid;
use FantasyLand\Functor;
use FantasyLand\Monad;

$obj = new Setoid();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.