PHPackages                             doppiogancio/guzzle-bundle-base-path-plugin - 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. doppiogancio/guzzle-bundle-base-path-plugin

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

doppiogancio/guzzle-bundle-base-path-plugin
===========================================

A Plugin for Guzzle Bundle, that will help you setting a base path to each request of your client.

v1.0.0(2y ago)0126[1 issues](https://github.com/doppiogancio/GuzzleBundleBasePathPlugin/issues)MITPHPPHP ^7.1|^8.0

Since Nov 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/doppiogancio/GuzzleBundleBasePathPlugin)[ Packagist](https://packagist.org/packages/doppiogancio/guzzle-bundle-base-path-plugin)[ RSS](/packages/doppiogancio-guzzle-bundle-base-path-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

Guzzle Bundle Base Path Plugin
==============================

[](#guzzle-bundle-base-path-plugin)

A Plugin for Guzzle Bundle, that will help you to set a base path to each request of your client.

---

Prerequisites
-------------

[](#prerequisites)

- PHP 7.1 or above

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

[](#installation)

To install this bundle, run the command below on the command line and you will get the latest stable version from \[Packagist\]\[4\].

```
composer require doppiogancio/guzzle-bundle-base-path
```

Usage
-----

[](#usage)

### Enable bundle

[](#enable-bundle)

Find next lines in `src/Kernel.php`:

```
foreach ($contents as $class => $envs) {
    if (isset($envs['all']) || isset($envs[$this->environment])) {
        yield new $class();
    }
}
```

and replace them by:

```
foreach ($contents as $class => $envs) {
    if (isset($envs['all']) || isset($envs[$this->environment])) {
        if ($class === \EightPoints\Bundle\GuzzleBundle\EightPointsGuzzleBundle::class) {
            yield new $class([
                new Doppiogancio\Bundle\GuzzleBundleBasePathPlugin\GuzzleBundleBasePathPlugin(),
            ]);
        } else {
            yield new $class();
        }
    }
}
```

### Basic configuration

[](#basic-configuration)

```
# app/config/config.yml

eight_points_guzzle:
    clients:
        api_payment:
            base_url: "http://api.domain.tld"

            options:
                auth: oauth2

            # plugin settings
            plugin:
                base_path:
                    base_path:       "/api/v3"
```

### Options

[](#options)

KeyDescriptionRequiredExamplebase\_pathbase path to add to every request pathyes/api/v3License
-------

[](#license)

This middleware is licensed under the MIT License - see the LICENSE file for details

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

920d ago

### Community

Maintainers

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

---

Top Contributors

[![doppiogancio](https://avatars.githubusercontent.com/u/7829649?v=4)](https://github.com/doppiogancio "doppiogancio (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/doppiogancio-guzzle-bundle-base-path-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/doppiogancio-guzzle-bundle-base-path-plugin/health.svg)](https://phpackages.com/packages/doppiogancio-guzzle-bundle-base-path-plugin)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M232](/packages/nelmio-api-doc-bundle)[friendsofsymfony/http-cache-bundle

Set path based HTTP cache headers and send invalidation requests to your HTTP cache

43813.2M47](/packages/friendsofsymfony-http-cache-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)

PHPackages © 2026

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