PHPackages                             zeyos/rest - 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. zeyos/rest

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

zeyos/rest
==========

A simple utility library to send and receive HTTP requests.

1.0.4(3y ago)02.5kLGPLPHPPHP &gt;=5.4.0

Since Jan 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zeyosinc/rest)[ Packagist](https://packagist.org/packages/zeyos/rest)[ RSS](/packages/zeyos-rest/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

phpREST - A simple utility library to send and receive HTTP requests
====================================================================

[](#phprest---a-simple-utility-library-to-send-and-receive-http-requests)

Main components
---------------

[](#main-components)

### Client

[](#client)

The `Client` class help you to execute HTTP request.

### Server

[](#server)

The `Server` class allows you to receive and process incoming HTTP requests.

*TODO: Router class for REST-style routes*

### Validator

[](#validator)

Utility class for form validation. Uses [filter\_var\_array](http://php.net/manual/en/function.filter-var-array.php) to filter form values.

Available filters (see also [filter.constants](http://php.net/manual/en/filter.constants.php))

```
'PASSWORD'       => FILTER_VALIDATE_PASSWORD,
'USERNAME'       => FILTER_VALIDATE_USERNAME,
'USERNAME_CHARS' => FILTER_VALIDATE_USERNAME_CHARS,
'IPV4'           => FILTER_VALIDATE_IPV4,
'IPV6'           => FILTER_VALIDATE_IPV6,
'URLPATH'        => FILTER_VALIDATE_URLPATH,
'URLQUERY'       => FILTER_VALIDATE_URLQUERY,
'MIN_LENGTH'     => FILTER_VALIDATE_MIN_LENGTH,
'MAX_LENGTH'     => FILTER_VALIDATE_MAX_LENGTH,
'LENGTH'         => FILTER_VALIDATE_LENGTH,
'DATE_RANGE'     => FILTER_VALIDATE_DATE_RANGE,
'DATE_START_END' => FILTER_VALIDATE_DATE_START_END,
'RESOURCE'       => FILTER_VALIDATE_RESOURCE,
'INTZERO'        => FILTER_VALIDATE_INTZERO,
'BOOLEAN'        => FILTER_VALIDATE_BOOLEAN,
'INT'            => FILTER_VALIDATE_INT,
'FLOAT'          => FILTER_VALIDATE_FLOAT,
'IDENTIFIER'     => FILTER_VALIDATE_IDENTIFIER,
'LANGCODE'       => FILTER_VALIDATE_LANGCODE,
'REQUIRED'       => FILTER_VALIDATE_REQUIRED,
'IP'             => FILTER_VALIDATE_IP,
'URL'            => FILTER_VALIDATE_URL,
'EMAIL'          => FILTER_VALIDATE_EMAIL,
'REGEXP'         => FILTER_VALIDATE_REGEXP,

```

### Localizer

[](#localizer)

- Loads language variables from a YAML, JSON or PHP file and caches generated files
- Allows you to query and insert language variables

Example
-------

[](#example)

```
$req = new REST\Client('http://sample.api.com/api.php');
$result = $req->get([
	'param' => 'value'
]);
```

License
-------

[](#license)

[![ZeyOS](https://camo.githubusercontent.com/4773b56179aef8e794f9eac3a685f0d7f77dfd81871e6a8bb89e5550c8c900ab/687474703a2f2f7777772e7a65796f732e636f6d2f6173736574732f696d672f6672616d652f6865616465726c6f676f2e706e67)](https://camo.githubusercontent.com/4773b56179aef8e794f9eac3a685f0d7f77dfd81871e6a8bb89e5550c8c900ab/687474703a2f2f7777772e7a65796f732e636f6d2f6173736574732f696d672f6672616d652f6865616465726c6f676f2e706e67)

Copyright (C) 2008 - 2013 [ZeyOS, Inc.](http://www.zeyos.com)

This work is licensed under the GNU Lesser General Public License (LGPL) which should be included with this software. You may also get a copy of the GNU Lesser General Public License from .

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~652 days

Total

5

Last Release

1176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73f59bbbf0bea604e68e44b4150ed339c2e789859992ea1ea415aea691e0bde7?d=identicon)[zeyos](/maintainers/zeyos)

---

Top Contributors

[![dapepe](https://avatars.githubusercontent.com/u/89526?v=4)](https://github.com/dapepe "dapepe (5 commits)")

### Embed Badge

![Health badge](/badges/zeyos-rest/health.svg)

```
[![Health](https://phpackages.com/badges/zeyos-rest/health.svg)](https://phpackages.com/packages/zeyos-rest)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
