PHPackages                             wellrested/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. wellrested/wellrested

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

wellrested/wellrested
=====================

Simple PHP Library for RESTful APIs

v6.1.0(1y ago)4818.7k↓38.9%11[1 PRs](https://github.com/wellrestedphp/wellrested/pulls)4MITPHPPHP &gt;=8.1

Since Feb 2Pushed 1y ago4 watchersCompare

[ Source](https://github.com/wellrestedphp/wellrested)[ Packagist](https://packagist.org/packages/wellrested/wellrested)[ Docs](https://www.wellrested.org)[ RSS](/packages/wellrested-wellrested/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (9)Versions (58)Used By (4)

WellRESTed
==========

[](#wellrested)

[![Packagist PHP Version](https://camo.githubusercontent.com/0f4bfe1527e30e55425f497dba3e3cd334d8d25e61117a1077ce533e7ca5b642/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f77656c6c7265737465642f77656c6c7265737465642f7068703f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wellrested/wellrested)[![GitHub Workflow Status](https://camo.githubusercontent.com/7a08ff1eb2ca7064fd3c54900cebb676ef5dfe9cd5ac3b0262f6c405a17a85bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f77656c6c7265737465647068702f77656c6c7265737465642f63692e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/wellrestedphp/wellrested/actions/workflows/ci.yml)[![Read the Docs](https://camo.githubusercontent.com/a457866ca37fade376b4b80d8e6f0a5b2bbe905f3ef2f9bfa711ffbbbc5734b5/68747470733a2f2f696d672e736869656c64732e696f2f72656164746865646f63732f77656c6c7265737465643f7374796c653d666c61742d737175617265)](https://wellrested.readthedocs.io/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.

### Features

[](#features)

- 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.

### Supports PSR Standards

[](#supports-psr-standards)

- [PSR-7](https://www.php-fig.org/psr/psr-7/) interfaces for requests, responses, and streams
- [PSR-15](https://www.php-fig.org/psr/psr-15/) interfaces for handlers and middleware
- [PSR-11](https://www.php-fig.org/psr/psr-11/) interfaces dependency injection

Install
-------

[](#install)

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

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

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

[](#documentation)

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

Example
-------

[](#example)

```
