PHPackages                             alxmsl/network - 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. alxmsl/network

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

alxmsl/network
==============

Simple library for network HTTP requests

v1.1.2(10y ago)138.6k↓14%28WTFPLPHP

Since Jul 11Pushed 10y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (7)Used By (8)

Network
=======

[](#network)

Native network requests driver for PHP

Installation
------------

[](#installation)

Require packet in a composer.json

```
"alxmsl/network": ">=1.0.0"

```

Run Composer: `php composer.phar install`

Usage example
-------------

[](#usage-example)

```
// Firstly include base class
include('../source/Autoloader.php');

use Network\Http\Request;

// Create request object
$Request = new Request();
$Request->setUrl('http://topface.com')
    ->setConnectTimeout(3)
    ->setTimeout(5);

```

Now you need to select transport type. Today it supports only curl transport type, but if future will other types. For example, sockets

```
$Request->setTransport(Request::TRANSPORT_CURL);

```

Using curl transport, you can add any additional [curl options](http://php.net/manual/en/function.curl-setopt.php)

```
$Request->getTransport()->setOption(CURLOPT_FOLLOWLOCATION, true);

```

You can add url parameters for requests like a

```
$Request->addUrlField('param1', 'value1')
    ->addUrlField('param2', 'value2');

```

You can add GET parameters

```
$Request->addGetField('param3', 'value3')
    ->addGetField('param4', 'value4');

```

You can add POST parameters

```
$Request->addPostField('field5', 'value5');
$Request->addPostField('field6', 'value6');

```

And send the request

```
$data = $Request->send();

```

License
-------

[](#license)

Copyright © 2014 Alexey Maslov This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

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

Total

5

Last Release

3804d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/950057?v=4)[Alexey Maslov](/maintainers/alxmsl)[@alxmsl](https://github.com/alxmsl)

---

Top Contributors

[![alxmsl](https://avatars.githubusercontent.com/u/950057?v=4)](https://github.com/alxmsl "alxmsl (26 commits)")

---

Tags

httpapicurl

### Embed Badge

![Health badge](/badges/alxmsl-network/health.svg)

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

###  Alternatives

[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.2M267](/packages/nategood-httpful)[aplus/http-client

Aplus Framework HTTP Client Library

2161.6M1](/packages/aplus-http-client)[vinelab/http

An http library developed for the laravel framework. aliases itself as HttpClient

59300.2k11](/packages/vinelab-http)[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)
