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.6kLGPLPHPPHP &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 2d 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 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

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

1222d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15706185?v=4)[ZeyOS](/maintainers/zeyos)[@zeyos](https://github.com/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

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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