luongtran/llaminas-diactoros

PSR HTTP Message implementations

1.0.1 2024-08-17 08:48 UTC

This package is not auto-updated.

Last update: 2024-12-21 10:25:00 UTC


README

Master: Build status Coverage Status Develop: Build status Coverage Status

Diactoros (pronunciation: /dɪʌktɒrɒs/): an epithet for Hermes, meaning literally, "the messenger."

This package supercedes and replaces phly/http.

laminas-diactoros is a PHP package containing implementations of the accepted PSR-7 HTTP message interfaces, as well as a "server" implementation similar to node's http.Server.

Documentation

Documentation is in the doc tree, and can be compiled using bookdown:

$ bookdown doc/bookdown.json
$ php -S 0.0.0.0:8080 -t doc/html/ # then browse to http://localhost:8080/

Bookdown

You can install bookdown globally using composer global require bookdown/bookdown. If you do this, make sure that $HOME/.composer/vendor/bin is on your $PATH; on *nix-like systems, you can do this by adding the following line to your .bashrc (or preferred shell RC file):

export PATH="$HOME/.composer/vendor/bin:$PATH"