PHPackages                             selvinortiz/hello - 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. selvinortiz/hello

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

selvinortiz/hello
=================

Friendly alternative to PHP CURL.

08PHP

Since Aug 23Pushed 12y ago1 watchersCompare

[ Source](https://github.com/selvinortiz/hello)[ Packagist](https://packagist.org/packages/selvinortiz/hello)[ RSS](/packages/selvinortiz-hello/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Hello 0.3.0
-----------

[](#hello-030)

Friendly alternative to **PHP CURL** *by* [Selvin Ortiz](http://twitter.com/selvinortiz)

[![Build Status](https://camo.githubusercontent.com/c1cc49bee1b2de9d7044f41fe935a8d13b92518983915fc28201bb1efe47b746/68747470733a2f2f7472617669732d63692e6f72672f73656c76696e6f7274697a2f68656c6c6f2e706e67)](https://travis-ci.org/selvinortiz/hello)[![Total Downloads](https://camo.githubusercontent.com/3261afc3d35ed35813a9969120ff2f3157d1c628845b534afb6531c032531e72/68747470733a2f2f706f7365722e707567782e6f72672f73656c76696e6f7274697a2f68656c6c6f2f642f746f74616c2e706e67)](https://packagist.org/packages/selvinortiz/hello)[![Latest Stable Version](https://camo.githubusercontent.com/7bbca248aa20d76e4ac462a8c5467f0ff2376d8528bd3eed63d21394e9bbd8c4/68747470733a2f2f706f7365722e707567782e6f72672f73656c76696e6f7274697a2f68656c6c6f2f762f737461626c652e706e67)](https://packagist.org/packages/selvinortiz/hello)

### Description

[](#description)

This mini library allows you to perform `GET` and `POST` requests without much fuzz using sockets.

### Requirements

[](#requirements)

- PHP 5.3
- [Composer](http://getcomposer.org) and [selvinortiz/hello](https://packagist.org/packages/selvinortiz/hello)

### Usage

[](#usage)

```
require '/path/to/vendor/autoload.php';

use selvinortiz\Http\Hello\Hello;

$url        = 'http://rest.akismet.com/1.1/verify-key';
$data       = array( 'blog' => 'http://domain.com', 'key'=>'' );
$headers    = array( 'user-agent' => 'Kismet 1.0 selvinortiz/kismet' );
$response   = Hello::post( $url, $data, $headers );

echo $response;     // Outputs the response content (invalid)

print_r($response); // Outputs the response object

/*

selvinortiz\Http\Hello\HttpResponse Object
(
    [raw] => Array
        (
            [wrapper_data] => Array
                (
                    [0] => HTTP/1.1 200 OK
                    [1] => Server: nginx
                    [2] => Date: Tue, 30 Jul 2013 20:33:40 GMT
                    [3] => Content-Type: text/plain; charset=utf-8
                    [4] => Content-Length: 7
                    [5] => Connection: close
                    [6] => X-akismet-server: 192.168.7.151
                    [7] => X-akismet-debug-help: Empty "key" value
                )

            [wrapper_type] => http
            [stream_type] => tcp_socket/ssl
            [mode] => r
            [unread_bytes] => 0
            [seekable] =>
            [uri] => http://rest.akismet.com/1.1/verify-key
            [timed_out] =>
            [blocked] => 1
            [eof] => 1
        )

    [info] => Array
        (
            [0] => HTTP/1.1 200 OK
            [1] => Server: nginx
            [2] => Date: Tue, 30 Jul 2013 20:33:40 GMT
            [3] => Content-Type: text/plain; charset=utf-8
            [4] => Content-Length: 7
            [5] => Connection: close
            [6] => X-akismet-server: 192.168.7.151
            [7] => X-akismet-debug-help: Empty "key" value
        )

    [status] => selvinortiz\Http\Hello\HttpStatus Object
        (
            [version] => HTTP/1.1
            [code] => 200
            [message] => OK
        )

    [response] => invalid
)

*/
```

### Changelog

[](#changelog)

#### v0.3.0

[](#v030)

- Fixes example in `/etc/`
- Updates this readme with composer package info
- Changes the parameter order to all methods moving `headers` last

#### v0.2.0

[](#v020)

- Adds proper case for vendor namespace `selvinortiz > SelvinOrtiz`
- Adds `PHPUnit` and `Travis CI`
- Adds simple test case

#### v0.1.0 (alpha)

[](#v010-alpha)

- Initial release implements `Hello::get()` and `Hello::post()`

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/93d52d70a5bafe64daf0512be1f3473bae56fa5bfb255258e30d6de3dcfcd170?d=identicon)[selvinortiz](/maintainers/selvinortiz)

---

Top Contributors

[![selvinortiz](https://avatars.githubusercontent.com/u/1922523?v=4)](https://github.com/selvinortiz "selvinortiz (10 commits)")

### Embed Badge

![Health badge](/badges/selvinortiz-hello/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

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

2.8k73.3M317](/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)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

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

78126.4M414](/packages/react-http)

PHPackages © 2026

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