PHPackages                             gmaissa/redmine-user-provider-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. [Security](/categories/security)
4. /
5. gmaissa/redmine-user-provider-bundle

ActiveSymfony-bundle[Security](/categories/security)

gmaissa/redmine-user-provider-bundle
====================================

A bundle to use Redmine as a user provider for Symfony projects.

1.0.0(9y ago)03MITPHPPHP &gt;=7.0

Since Apr 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/GMaissa/RedmineUserProviderBundle)[ Packagist](https://packagist.org/packages/gmaissa/redmine-user-provider-bundle)[ Docs](https://github.com/GMaissa/RedmineUserProviderBundle)[ RSS](/packages/gmaissa-redmine-user-provider-bundle/feed)WikiDiscussions master Synced 2w ago

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

RedmineUserProviderBundle [![Packagist](https://camo.githubusercontent.com/7bad6d28ac319971421f6bbffba9adff056facb0a7f7f07d58db97977799ca43/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f676d61697373612f7265646d696e652d757365722d70726f76696465722d62756e646c652e737667)](https://packagist.org/packages/gmaissa/redmine-user-provider-bundle)
=========================================================================================================================================================================================================================================================================================================================================================================

[](#redmineuserproviderbundle-)

master[![SensioLabsInsight](https://camo.githubusercontent.com/fa38c3449ce44ab95315acaf34467082c086eec849e9e2ce1ac08ba6cb4baf12/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34343363366361302d613462612d346164642d613165362d3431646436336131663134652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/443c6ca0-a4ba-4add-a1e6-41dd63a1f14e)[![Scrutinizer](https://camo.githubusercontent.com/262f6d8e0b84660e75d3a70e615b232ec5a3bd6f18a6764c72e68ffc91a87607/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f474d61697373612f5265646d696e655573657250726f766964657242756e646c652f6d61737465722e737667)](https://scrutinizer-ci.com/g/GMaissa/RedmineUserProviderBundle/?branch=master)[![Build Status](https://camo.githubusercontent.com/4fcd3962371a556f475dc78e8cc85ebc42d0015dc691d8d6d09d1f47c8b6f29c/68747470733a2f2f7472617669732d63692e6f72672f474d61697373612f5265646d696e655573657250726f766964657242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/GMaissa/RedmineUserProviderBundle)[![Code Coverage](https://camo.githubusercontent.com/b5e233622cbe3b66757a668516c4ed29c584762a1eb4d51221427f70bcd2ae35/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f474d61697373612f5265646d696e655573657250726f766964657242756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GMaissa/RedmineUserProviderBundle/?branch=master)About
-----

[](#about)

A bundle to use Redmine as a user provider.

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

[](#installation)

The recommended way to install this bundle is through [Composer](http://getcomposer.org/). Just run :

```
composer require gmaissa/redmine-user-provider-bundle
```

Register the bundle in the kernel of your application :

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new GMaissa\RedmineUserProviderBundle\GmRedmineUserProviderBundle(),
    );

    return $bundles;
}
```

Use the Redmine user provider in your security.yml file :

```
# app/config/security.yml
security:
    ...
    providers:
        app:
            id: gm_redmine_user_provider.provider
    ...
```

Configuration reference
-----------------------

[](#configuration-reference)

```
# app/config/config.yml
gm_redmine_user_provider:
    redmine:
        url:                  ~ # Required
        allowed_domains:      []
    user_class:           GMaissa\RedmineUserProviderBundle\Model\RedmineUser
    persistence_driver:   ~ # One of "orm"
    oauthserver_bridge:   false
```

Persist your User
-----------------

[](#persist-your-user)

### User entity class

[](#user-entity-class)

Implement your own User Entity class, extending `GMaissa\RedmineUserProviderBundle\Entity\User` and declare it in the bundle configuration :

```
# app/config/config.yml
gm_redmine_user_provider:
    ...
    user_class: AppBundle\Entity\User
```

### Using a provided user repository

[](#using-a-provided-user-repository)

Enable the provided persistence driver you want to use (for now only Doctrine ORM is provided) :

```
# app/config/config.yml
gm_redmine_user_provider:
    ...
    user_class: AppBundle\Entity\User
    persistence_driver: orm
```

### Using a custom user repository

[](#using-a-custom-user-repository)

Implements the `GMaissa\RedmineUserProviderBundle\Repository\UserRepositoryInterface` interface for your repository service`and tag is as a `gm\_redmine\_user\_provider.user\_repository :

```
# services.yml
services:
    app.user_repository:
        class: AppBundle\Repository\UserReposioty
        tags:
            -  {name: gm_redmine_user_provider.user_repository}
```

Using with FOSOAuthServerBundle
-------------------------------

[](#using-with-fosoauthserverbundle)

Enable the OAuth Server Bridge :

```
# app/config/config.yml
gm_redmine_user_provider:
    ...
    oauthserver_bridge: true
```

You can now use the OAuth Storage service `gm_redmine_user_provider.bridge.oauth.storage` :

```
# app/config/config.yml
fos_oauth_server:
    ...
    service:
        storage: gm_redmine_user_provider.bridge.oauth.storage
```

Implementing your own User Factory
----------------------------------

[](#implementing-your-own-user-factory)

If you want to use a custom User Factory, implement the `GMaissa\RedmineUserProviderBundle\Factory\UserFactoryInterface`interface, register your service and alias it as `gm_redmine_user_provider.factory.user`.

```
# services.yml
services:
    app.redmine_user_provider.user_factory:
        class: AppBundle\Factory\CustomUserFactory
        calls:
            - [setUserClass, ["%gm_redmine_user_provider.user_class%"]]
        alias: gm_redmine_user_provider.factory.user
```

Using your own Redmine Api Client
---------------------------------

[](#using-your-own-redmine-api-client)

Like the custom User Factory, implement the `GMaissa\RedmineUserProviderBundle\ApiClient\RedmineApiClientInterface`interface, register your service and alias it as `gm_redmine_user_provider.api.client`.

```
# services.yml
services:
    app.redmine_user_factory.api_client:
        class: AppBundle\ApiClient\CustomApiClient
        arguments:
            - "%gm_redmine_user_provider.redmine.url%"
        alias: gm_redmine_user_provider.api.client
```

Running tests
-------------

[](#running-tests)

Install the dev dependencies :

composer install --dev

Run PHPUnit test suite :

```
php vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

In order to be accepted, your contribution needs to pass a few controls :

- PHP files should be valid
- PHP files should follow the [PSR-2](http://www.php-fig.org/psr/psr-2/) standard
- PHP files should be [phpmd](https://phpmd.org) and [phpcpd](https://github.com/sebastianbergmann/phpcpd)warning/error free

To ease the validation process, install the [pre-commit framework](http://pre-commit.com)and install the repository pre-commit hook :

```
pre-commit install

```

Finally, in order to homogenize commit messages across contributors (and to ease generation of the CHANGELOG), please apply this [git commit message hook](https://gist.github.com/GMaissa/f008b2ffca417c09c7b8)onto your local repository.

License
-------

[](#license)

This bundle is released under the MIT license. See the complete license in the bundle:

```
src/Resources/meta/LICENSE
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3363d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d8ed05a794cbde94c0bf4e6516a214a68333afef973340591a31f3dfcbb1a50?d=identicon)[GMaissa](/maintainers/GMaissa)

---

Top Contributors

[![GMaissa](https://avatars.githubusercontent.com/u/1993716?v=4)](https://github.com/GMaissa "GMaissa (17 commits)")

---

Tags

redminesymfonysymfony-bundlesymfony3user-providersecurityredmineuser provider

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/gmaissa-redmine-user-provider-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/gmaissa-redmine-user-provider-bundle/health.svg)](https://phpackages.com/packages/gmaissa-redmine-user-provider-bundle)
```

###  Alternatives

[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[sylius/sylius

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

8.5k5.8M712](/packages/sylius-sylius)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[kimai/kimai

Kimai - Time Tracking

4.8k8.7k1](/packages/kimai-kimai)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)

PHPackages © 2026

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