PHPackages                             basemaster/wellrested - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. basemaster/wellrested

ActiveLibrary[HTTP &amp; Networking](/categories/http)

basemaster/wellrested
=====================

Clone for Simple PHP Library for RESTful APIs (wellrested.org)

v5.1.1.2(3y ago)03.5kMITPHPPHP &gt;=7.2

Since Feb 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/basemaster/wellrested)[ Packagist](https://packagist.org/packages/basemaster/wellrested)[ RSS](/packages/basemaster-wellrested/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (4)Versions (50)Used By (0)

WellRESTed
==========

[](#wellrested)

[![Minimum PHP Version](https://camo.githubusercontent.com/7fe5e9f79fc1d389e5ee6889399d57b96cbfdfb4dc0ea57aa6868ba37060e577/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e322d626c7565)](https://php.net/)[![Documentation Status](https://camo.githubusercontent.com/6b1c5249c2b8608d75ab1b9eab8722a286ce565182f474efae7f1396b6c7f8c0/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f77656c6c7265737465642f62616467652f3f76657273696f6e3d6c6174657374)](http://wellrested.readthedocs.org/en/latest/)

WellRESTed is a library for creating RESTful APIs and websites in PHP that provides abstraction for HTTP messages, a powerful handler and middleware system, and a flexible router.

This fork (basemaster/wellrested) is back to php 7.2 release.

### Features

[](#features)

- Uses [PSR-7](https://www.php-fig.org/psr/psr-7/) interfaces for requests, responses, and streams. This lets you use other PSR-7 compatable libraries seamlessly with WellRESTed.
- Uses [PSR-15](https://www.php-fig.org/psr/psr-15/) interfaces for handlers and middleware to allow sharing and reusing code
- Router allows you to match paths with variables such as `/foo/{bar}/{baz}`.
- Middleware system provides a way to compose your application from discrete, modular components.
- Lazy-loaded handlers and middleware don't instantiate unless they're needed.

Install
-------

[](#install)

Add an entry for "wellrested/wellrested" to your composer.json file's `require` property.

```
{
    "require": {
        "wellrested/wellrested": "^5"
    }
}
```

Documentation
-------------

[](#documentation)

See [the documentation](https://wellrested.readthedocs.org/en/latest/) to get started.

Example
-------

[](#example)

```
