PHPackages                             userbase/client-bundle - 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. [Framework](/categories/framework)
4. /
5. userbase/client-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

userbase/client-bundle
======================

UserBase Client Bundle for Symfony

v1.7.0(1y ago)02.7k2MITPHP

Since Apr 6Pushed 1y ago2 watchersCompare

[ Source](https://github.com/linkorb/userbase-client-bundle)[ Packagist](https://packagist.org/packages/userbase/client-bundle)[ RSS](/packages/userbase-client-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (7)Dependencies (5)Versions (14)Used By (0)

Installation
============

[](#installation)

Open a command console, enter your project directory and execute:

```
$ composer require --no-scripts userbase/client-bundle
```

Create the bundle configuration:

```
# config/packages/userbase-client-bundle.yaml
user_base_client:
  http_client:
    url: '%env(USERBASE_DSN)%'
```

```
# .env.local
USERBASE_DSN=https://key:secret@userbase.example.com/api/v1
```

Complete the installation:

```
$ composer auto-scripts post-install-cmd
```

Caching
-------

[](#caching)

It is possible to cache the user data obtained from Userbase in the course of Authentication. This can help to reduce the load Userbase must bear and make your application speedier.

First you will configure a [PSR-6](https://www.php-fig.org/psr/psr-6/ "PSR-6: Caching Interface") cache pool and adapter and then you will configure the Bundle to make use of the cache.

### Configure a Cache

[](#configure-a-cache)

You should familiarise yourself with the [Symfony Cache](https://symfony.com/doc/current/cache.html) and [Cache Component](https://symfony.com/doc/current/components/cache.html "The Cache Component") documentation.

By way of example, here is the config needed to have FrameworkBundle create a cache using the [FilesystemAdapter](https://symfony.com/doc/current/components/cache/adapters/filesystem_adapter.html "Filesystem Cache Adapter").

Configure the adapter in your Service Container config:

```
# config/services.yaml

parameters:
  ...
  app.userbase_cache.path: 'path/to/a/directory'
  app.userbase_cache.default_lifetime_secs: 600

services:
  ...
  userbase_cache.adapter:
    class: Symfony\Component\Cache\Adapter\FilesystemAdapter
    arguments:
      - 'userbase'
      - '%app.userbase_cache.default_lifetime_secs%'
      - '%app.userbase_cache.path%'

```

This will make available a cache adapter as a service with the id `userbase_cache.adapter`. A cache pool can now be configured:

```
# config/packages/prod/cache.yaml

framework:
  cache:
    pools:
      userbase_cache:
        adapter: userbase_cache.adapter

```

This will make available a cache pool with the id `userbase_cache`. The Bundle can now be configured:

```
# config/packages/prod/userbase.yaml

user_base_client:
  ...
  cache:
    id: userbase_cache
    lifetime: '%app.userbase_cache.default_lifetime_secs%' # or, e.g. 3600

```

Finally, clear the application cache to activate the configuration:

```
bin/console cache:clear

```

That's it.

Please note that the Filesystem cache adapter is not ideal because it is slow and has no built-in means of evicting items from the cache (eviction can be achieved using the `bin/console cache:pool:prune` console command). A better choice of adapter is [Memcached](https://symfony.com/doc/current/components/cache/adapters/memcached_adapter.html "Memcached Cache Adapter") or [Redis](https://symfony.com/doc/current/components/cache/adapters/redis_adapter.html "Redis Cache Adapter").

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance46

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 55% 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 ~212 days

Recently: every ~290 days

Total

13

Last Release

419d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![boite](https://avatars.githubusercontent.com/u/989892?v=4)](https://github.com/boite "boite (11 commits)")[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (4 commits)")[![prajapati-kaushik](https://avatars.githubusercontent.com/u/10140681?v=4)](https://github.com/prajapati-kaushik "prajapati-kaushik (3 commits)")[![mhitza](https://avatars.githubusercontent.com/u/273079?v=4)](https://github.com/mhitza "mhitza (2 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/userbase-client-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/userbase-client-bundle/health.svg)](https://phpackages.com/packages/userbase-client-bundle)
```

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k235.4M9.7k](/packages/symfony-framework-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

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

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

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)

PHPackages © 2026

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