PHPackages                             slogsdon/fp-web - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. slogsdon/fp-web

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

slogsdon/fp-web
===============

test bed for a functional web toolkit

0.0.8(10y ago)115MITPHPPHP &gt;=5.5

Since Jul 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/slogsdon/php-fp-web)[ Packagist](https://packagist.org/packages/slogsdon/fp-web)[ RSS](/packages/slogsdon-fp-web/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

fp-web
======

[](#fp-web)

[![Packagist Version](https://camo.githubusercontent.com/f68d550cb9793dffce62e66067b37312ee29ab3660606697b2ede82c8c695c78/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c6f6773646f6e2f66702d7765622e737667)](https://packagist.org/packages/slogsdon/fp-web)[![Build Status](https://camo.githubusercontent.com/3300d29849b1e3d5bafc4578a096bc7cb14e1d5a22e05a4a35206985da7b6418/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736c6f6773646f6e2f7068702d66702d7765622e7376673f7374796c653d666c6174)](https://travis-ci.org/slogsdon/php-fp-web)[![Coverage Status](https://camo.githubusercontent.com/cec2c86dafd08a1acc7ae08fea1d04aeb877720dd66f7a915ba6af0835f79fa7/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f736c6f6773646f6e2f7068702d66702d7765622e7376673f7374796c653d666c6174)](https://coveralls.io/r/slogsdon/php-fp-web)

> Test bed for a functional web toolkit

This is just an experiment for what a web toolkit that doesn't use object-oriented code.

In theory, this is just a bit of PHP and should be fine for use, but in practice, don't use this but use something more established, more tested, and more used instead.

Running the example
-------------------

[](#running-the-example)

```
$ git clone https://github.com/slogsdon/php-fp-web
$ cd php-fp-web
$ composer install
$ php -S 0.0.0.0:8888 -t example

```

In another terminal session:

```
$ curl -i http://localhost:8800/index
HTTP/1.1 200 OK
Host: localhost:8888
Connection: close
X-Powered-By: PHP/5.6.10
Content-type: text/html; charset=UTF-8

index
$ curl -i http://localhost:8800/
HTTP/1.1 404 Not Found
Host: localhost:8888
Connection: close
X-Powered-By: PHP/5.6.10
Content-type: text/html; charset=UTF-8

Not Found

```

Usage
-----

[](#usage)

```
