PHPackages                             slice/http - 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. slice/http

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

slice/http
==========

A thin PHP Library for perform HTTP Requests.

v1.1.5(11y ago)73521[3 issues](https://github.com/devsdmf/slice-http/issues)GNUPHPPHP &gt;=5.3.0

Since Nov 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/devsdmf/slice-http)[ Packagist](https://packagist.org/packages/slice/http)[ Docs](http://slice.devsdmf.net)[ RSS](/packages/slice-http/feed)WikiDiscussions master Synced 2w ago

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

Slice\\Http
===========

[](#slicehttp)

A thin PHP Library to perform HTTP requests for Web Services, available request methods are GET, POST, PUT and DELETE, can also send request headers, send GET and POST parameters, send data in RAW format and support for HTTP versions 1.0 and 1.1. This library is based on Zend\_Http component of Zend Framework 1 and needs a CURL extension installed.

Example
-------

[](#example)

```
use Slice\Http\Client;

# Initializing Client
$client = new Client();

# Set method
$client->setMethod($client::POST);

# Set URI
$client->setUri('http://localhost/ws/');

# Set GET parameters
$client->setParameterGet('fooGet','barGet');

# Set POST parameters
$client->setParameterPost(array(
	'var1'=>'value1',
	'var2'=>'value2',
));

# Set headers
$client->setHeaders('foo','bar');

# Set HTTP version
$client->setHTTPVersion($client::HTTP_0);

# Performing request
$response = $client->request();
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

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

Recently: every ~70 days

Total

6

Last Release

4309d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1649565?v=4)[Lucas Mendes](/maintainers/devsdmf)[@devsdmf](https://github.com/devsdmf)

---

Top Contributors

[![devsdmf](https://avatars.githubusercontent.com/u/1649565?v=4)](https://github.com/devsdmf "devsdmf (18 commits)")

---

Tags

curlhttp requestslice

### Embed Badge

![Health badge](/badges/slice-http/health.svg)

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k36.3M275](/packages/rmccue-requests)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48348.5M435](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84711.1M80](/packages/smi2-phpclickhouse)[popphp/pop-http

Pop Http Component for Pop PHP Framework

1019.6k14](/packages/popphp-pop-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)
