PHPackages                             lliure/llrequest - 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. lliure/llrequest

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

lliure/llrequest
================

A lightweight PHP package for connecting to RESTful HTTP APIs and SOAP services.

v1.2.7(3mo ago)22.4kMITPHPPHP ^5.3.3 || ^7.0 || ^8.0

Since Feb 20Pushed 3mo ago3 watchersCompare

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

READMEChangelog (9)DependenciesVersions (12)Used By (0)

Package Documentation: llRequest
--------------------------------

[](#package-documentation-llrequest)

### Overview

[](#overview)

`llRequest` is a versatile PHP library for making SOAP and HTTP API requests. It simplifies the process of interacting with remote services by providing an easy-to-use interface for sending requests and handling responses.

### Installation

[](#installation)

To use `llRequest`, you can include it in your project via Composer. Add the following line to your `composer.json` file:

```
"require": {
    "ll/request": "^1.0"
}
```

Then run `composer install` to install the package.

### Examples

[](#examples)

#### SOAP Request

[](#soap-request)

```
use ll\Request\Request;

// Set SOAP headers
$headers = [
    'login' => 'xxxx',
    'password' => 'xxxx',
    'trace' => 1,
    'exception' => 0
];

// Make a SOAP request
Request::soap('http://xxxxx/service.svc?wsdl')
    ->headers($headers)
    ->ProductGet(['idProduct' => 4])
    ->done(function ($response) {
        echo '' , __LINE__ , ": " , print_r($response, true) , '';
    });
```

#### HTTP/API GET Request

[](#httpapi-get-request)

```
use ll\Request\Request;

// Make an HTTP GET request
Request::http('http://xxxxx.xxx/xxx/xxx')
    ->headers([
        'Content-Type' => 'application/json'
    ])
    ->get()
    ->done(function ($response) {
        echo '' , __LINE__ , ": " , print_r($response->meta(), true) , '';
        $decodedResponse = json_decode($response);
        echo '' , __LINE__ , ": " , print_r($decodedResponse, true) , '';
    });
```

#### HTTP/API POST Request

[](#httpapi-post-request)

```
use ll\Request\Request;

// Make an HTTP POST request
Request::http('http://xxxxx.xxx/xxx/xxx')
    ->headers([
        'Content-Type' => 'application/json'
    ])
    ->post(json_encode(['name' => 'tintim']))
    ->done(function ($response) {
        echo '' , __LINE__ , ": " , print_r($response->meta(), true) , '';
        $decodedResponse = json_decode($response);
        echo '' , __LINE__ , ": " , print_r($decodedResponse, true) , '';
    });
```

### Usage

[](#usage)

- **SOAP Request:** Use `Request::soap($wsdlUrl)` to initiate a SOAP request. You can set headers with `->headers($headersArray)` and make method calls like `->MethodName($paramsArray)`.
- **HTTP/API Request:** Use `Request::http($url)` to initiate an HTTP request. Set headers with `->headers($headersArray)` and specify the request type (`->get()`, `->post($data)`, etc.). Handle the response using the `->done()` method.

### Notes

[](#notes)

- Ensure that the required dependencies are installed via Composer (`ll/request`).
- Replace placeholder values (`xxxx`, `http://xxxxx.xxx/xxx/xxx`, etc.) with actual URLs, credentials, and data relevant to your use case.
- Handle response data within the `->done()` callback function, processing it as needed for your application.

For more information and detailed usage instructions, refer to the official `llRequest` documentation or source repository.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance81

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 79.3% 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 ~363 days

Recently: every ~162 days

Total

10

Last Release

105d ago

Major Versions

v0.4-alpha → V1.12020-01-28

PHP version history (2 changes)v0.4-alphaPHP ^5.3.3 || ^7.0

v1.2PHP ^5.3.3 || ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1d5d912f03198cc7277645f466ec483e9b79df200e11dc6f42eb60020a5dd09?d=identicon)[jomadee](/maintainers/jomadee)

---

Top Contributors

[![jomadee](https://avatars.githubusercontent.com/u/2077867?v=4)](https://github.com/jomadee "jomadee (23 commits)")[![carloscarucce](https://avatars.githubusercontent.com/u/5069326?v=4)](https://github.com/carloscarucce "carloscarucce (4 commits)")[![rodrigo-dechen](https://avatars.githubusercontent.com/u/5004207?v=4)](https://github.com/rodrigo-dechen "rodrigo-dechen (2 commits)")

### Embed Badge

![Health badge](/badges/lliure-llrequest/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

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

2.8k73.3M319](/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)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

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

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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