PHPackages                             happyr/api-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. [API Development](/categories/api)
4. /
5. happyr/api-bundle

ActiveSymfony-bundle[API Development](/categories/api)

happyr/api-bundle
=================

Api stuff for most Happyr projects

0.5.1(7y ago)124.3k2[1 PRs](https://github.com/Happyr/ApiBundle/pulls)MITPHPPHP ^7.0

Since Apr 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Happyr/ApiBundle)[ Packagist](https://packagist.org/packages/happyr/api-bundle)[ RSS](/packages/happyr-api-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (10)Versions (14)Used By (0)

Happyr Api Bundle
=================

[](#happyr-api-bundle)

[![Latest Version](https://camo.githubusercontent.com/53f3d4dd1918e8f4b5967888b0809abdc3a1d7cf9f0447ba8bdf7ffad96b737c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4861707079722f41706942756e646c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/Happyr/ApiBundle/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/4b543a676b1b1c95e32900b2ec3cf60bab7c02cc6828c4bcd58fc2376ab61e45/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4861707079722f41706942756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Happyr/ApiBundle)[![Code Coverage](https://camo.githubusercontent.com/3e207b468f6b6fc05557f78d02e51f5e0640408c2c705b384b5dab6c2bef58ff/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4861707079722f41706942756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Happyr/ApiBundle)[![Quality Score](https://camo.githubusercontent.com/ea31c245f2980e475a4338faec9a85a9c27c40bf5869b2337ed880e636b0935d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4861707079722f41706942756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Happyr/ApiBundle)[![Total Downloads](https://camo.githubusercontent.com/5023f2bff38f16554eeaae1809f29686ea584c4998abed75f1d8db6964bd4209/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6861707079722f6170692d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/happyr/api-bundle)

### To Install

[](#to-install)

Run the following in your project root, assuming you have composer set up for your project

```
composer require happyr/api-bundle
```

Add the bundle to app/AppKernel.php

```
$bundles = [
    // ...
    new Happyr\ApiBundle\HappyrApiBundle(),
];
```

Security
--------

[](#security)

Wsse is built in and can be enabled - disabled by default.

To enable and configure it, in config.yml add

```
happyr_api:
    wsse:
        user_provider: "security.user.provider.concrete.in_memory"
        cache_service: "cache.provider.redis"
        lifetime: 300
        debug: false # Set to true to disable WSSE completely. You will always be authenticated.
```

And in security.yml configure your provider where you store users to something like this

```
security:
    providers:
        in_memory:
            memory:
                users:
                    username:
                        password: password
                        roles: ['ROLE_API_USER']
```

And under firewalls in security.yml, add a new firewall like so

```
security:
    firewalls:
        main:
            pattern:   ^/api/
            stateless: true
            wsse:      true
```

Exception listener
------------------

[](#exception-listener)

Exception listener is enabled by default. It will catch uncaught exceptions and return formatted json response.

Here is an example configuration:

```
happyr_api:
  exception_listener:
    enabled: false # disables response listener
    path_prefix: '/api/' # path prefix to enable listener on. By default its enabled for any path
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.6% 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 ~49 days

Recently: every ~57 days

Total

12

Last Release

2776d ago

PHP version history (3 changes)0.1.0PHP ^5.6 || ^7.0

0.4.0PHP ^7.1

0.4.2PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (19 commits)")[![aradoje](https://avatars.githubusercontent.com/u/30075502?v=4)](https://github.com/aradoje "aradoje (4 commits)")

---

Tags

restwsse

### Embed Badge

![Health badge](/badges/happyr-api-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

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

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[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)

PHPackages © 2026

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