PHPackages                             wbsartori/request-manager - 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. wbsartori/request-manager

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

wbsartori/request-manager
=========================

Request Manager is a PHP HTTP client library containing the abstraction of the Guzzle and PhpCurlClass libraries

v0.0.4(3y ago)120proprietaryPHPPHP &gt;=7.3

Since Apr 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Gustavo-Paris/RequestManager)[ Packagist](https://packagist.org/packages/wbsartori/request-manager)[ RSS](/packages/wbsartori-request-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (8)Used By (0)

Request Management Package
==========================

[](#request-management-package)

---

### Requirements

[](#requirements)

```
Request Management Package requires PHP version 7.3.0 or greater.

```

### Installation

[](#installation)

```
To use the package it is necessary to install it via composer:

```

```
composer require wbsartori/request-manager
```

### Basic Example of use GuzzleRequest

[](#basic-example-of-use-guzzlerequest)

You can call the Runner class and in the setClient method pass the client you want to use, currently our package supports GuzzleRequet and PhpCurlClass with some abstractions.

### GET Method with basic authentication

[](#get-method-with-basic-authentication)

```
    use RequestManager\RequestRunner;
    use RequestManager\Http\GuzzleRequestAdapter;

    try {
        $url = sprintf('%s%s',
          '/',$router
        );

        $response = (new RequestRunner())
            ->setClient(new GuzzleRequestAdapter())
            ->basicAuth($username, $password)
            ->setHeader($headers)
            ->setUri($uri)
            ->get($url);

            echo json_encode($response);

    } catch (Exception $e) {
        echo json_encode([
            'code: ' => $e->getCode(),
            'message: ' => $e->getMessage()
        ]);
    }
```

### POST Method with basic authentication

[](#post-method-with-basic-authentication)

```

    use RequestManager\RequestRunner;
    use RequestManager\Requests\GuzzleRequest;

    try {
        $data = [
            [
                'description' => 'description',
                'acronym' => 'acronym'
            ]
         ];

        $url = sprintf('%s%s',
            '/', $router
        );

        $response = (new RequestRunner())
            ->setClient(new GuzzleRequest())
            ->basicAuth($username, $password)
            ->setHeader(['header' => ''])
            ->setUri($uri)
            ->setData(['multipart' => $data])
            ->post($url);

        echo json_encode($response);

    } catch (Exception $e) {
        echo json_encode([
            'code: ' => $e->getCode(),
            'message: ' => str_replace('\\', '', $e->getMessage())
        ]);
    }

```

### UPDATE Method with basic authentication

[](#update-method-with-basic-authentication)

```

    use RequestManager\RequestRunner;
    use RequestManager\Requests\GuzzleRequest;

    try {
        $data = [
            'description' => 'New description',
            'acronym' => 'NA'
        ];

        $url = sprintf('%s%s%s%s',
        '/',
            $router,
            DIRECTORY_SEPARATOR,
            30
        );

        $response = (new RequestRunner())
            ->setClient(new GuzzleRequest())
            ->basicAuth($username, $password)
            ->setHeader(['header' => ''])
            ->setUri($uri)
            ->setData(['json' => $data])
            ->put($url);

        echo json_encode($response);

    } catch (Exception $e) {
        echo json_encode([
            'code: ' => $e->getCode(),
            'message: ' => str_replace('\\', '', $e->getMessage())
        ]);
    }

```

### DELETE Method with basic authentication

[](#delete-method-with-basic-authentication)

```

    use RequestManager\RequestRunner;
    use RequestManager\Requests\GuzzleRequest;

    try {
        $url = sprintf('%s%s%s%s',
        '/',
            $router,
            DIRECTORY_SEPARATOR,
            30
        );

        $response = (new RequestRunner())
            ->setClient(new GuzzleRequest())
            ->basicAuth($username, $password)
            ->setHeader(['header' => ''])
            ->setUri($uri)
            ->delete($url);

        echo json_encode($response);

    } catch (Exception $e) {
        echo json_encode([
            'code: ' => $e->getCode(),
            'message: ' => $e->getMessage()
        ]);
    }
```

### Methods

[](#methods)

```
    setClient((new Client));         #Set the Client you want to use, if you don't use this method, Guzzle will be set as default.
    basicAuth($username, $password); #Basic authentication, if not used, the default noAuth will be used.
    bearerTokenAuth($token);         #Bearer token authentication, if not used, the default noAuth will be used.
    setHeader($headers)              #Receives an array of headers from the request if necessary.
    setUri($uri)                     #Get the api host with the slash at the end.
    setData($uri)                    #Receives an array of data if the method needs to pass some value.
    get($url)                        #Receives the route for which you want to fetch data.
    post($url)                       #Get the route for which you want to create data.
    put($url)                        #Get the route for which you want to update data.
    delete($url)                     #Get the route for which you want to delete data.
```

You can check the documentation for examples of using Guzzle and PHPCurlClass.

### Documentantion

[](#documentantion)

[Link to documentation and examples.](https://github.com/Gustavo-Paris/RequestManager/blob/master/docs/README.md)

### Contributing

[](#contributing)

[Link to contributing.](https://github.com/Gustavo-Paris/RequestManager/blob/master/docs/CONTRIBUTING.md)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 98.1% 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

5

Last Release

1123d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/a58e4b470b8db2064ead627c9eb6d2a3451aa0d43a420e1bfabb34fc72863fc1?d=identicon)[Gustavo-Paris](/maintainers/Gustavo-Paris)

---

Top Contributors

[![wbsartori](https://avatars.githubusercontent.com/u/25470180?v=4)](https://github.com/wbsartori "wbsartori (52 commits)")[![Gustavo-Paris](https://avatars.githubusercontent.com/u/71448975?v=4)](https://github.com/Gustavo-Paris "Gustavo-Paris (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wbsartori-request-manager/health.svg)

```
[![Health](https://phpackages.com/badges/wbsartori-request-manager/health.svg)](https://phpackages.com/packages/wbsartori-request-manager)
```

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)

PHPackages © 2026

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