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

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

belsrc/rest-easy
================

A simple library to make restful curl requests

v0.2.0(12y ago)149BSD-3-ClausePHPPHP &gt;=5.3.0

Since Mar 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/belsrc/rest-easy)[ Packagist](https://packagist.org/packages/belsrc/rest-easy)[ Docs](https://github.com/belsrc/rest-easy)[ RSS](/packages/belsrc-rest-easy/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

[![No Maintenance Intended](https://camo.githubusercontent.com/b667ecaf427625f58af41b27a431397913e9a502ac7498cceecc7a54e7a4851b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4e6f2532304d61696e74656e616e6365253230496e74656e6465642d782d7265642e7376673f7374796c653d666c61742d737175617265266c6f6e6743616368653d74727565)](http://unmaintained.tech/)

RestEasy
========

[](#resteasy)

A simple library to make restful curl requests.

### Install

[](#install)

You can install it by downloading the [zip](https://github.com/belsrc/rest-easy/archive/master.zip) and including it in your project or, preferably, using Composer.

```
{
    "require": {
        "belsrc/rest-easy": "dev-master"
    }
}

```

If you are using Laravel you can also include the ServiceProvider in the `app/config/app.php` 'providers' array.

```
    'Belsrc\RestEasy\RestEasyServiceProvider'

```

as well as the Facade in the 'aliases' array.

```
    'RestEasy' => 'Belsrc\RestEasy\Facades\RestEasy'

```

### Quick Example

[](#quick-example)

```
Route::get('/', function() {
    $headers = array(
        'Content-Type: text/html',
        'Accept: text/html',
        'Accept-Charset: utf-8',
        'Accept-Language: en-US'
    );
    $tmp = RestEasy::get( 'http://laravel.com/', $headers );
    echo $tmp->body;
});
```

#### RestEasy Methods

[](#resteasy-methods)

Just four easy methods to remember

```
RestEasy::get($url, $headers)
RestEasy::post($url, $headers, $data)
RestEasy::put($url, $headers, $data)
RestEasy::delete($url, $headers)
```

with the response being an instance of the `CurlResponse` object having a few simple properties.

```
CurlResponse::getBody()
CurlResponse::getInfo()
CurlResponse::getError()
```

all of which can also be called like normal properties.

```
$response->body
$response->info
$response->error
```

License
-------

[](#license)

RestEasy is released under a BSD 3-Clause License

Copyright © 2013-2014, Bryan Kizer All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the Organization nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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 ~1 days

Total

2

Last Release

4432d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44835a021d9a5db3579b4f087deb37ec7da39d00150404f5caea76ac97588a48?d=identicon)[belsrc](/maintainers/belsrc)

---

Top Contributors

[![belsrc](https://avatars.githubusercontent.com/u/1832432?v=4)](https://github.com/belsrc "belsrc (14 commits)")

---

Tags

restcurlrestful

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.2M267](/packages/nategood-httpful)[arhitector/yandex

PHP SDK для работы с некоторыми сервисами яндекса (Яндекс.Диск, Yandex.Disk)

13082.9k5](/packages/arhitector-yandex)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[voku/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

16183.9k1](/packages/voku-httpful)[msankhala/parsehub-php

Php wrapper classes for Parsehub REST api.

1312.4k](/packages/msankhala-parsehub-php)

PHPackages © 2026

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