PHPackages                             rodgermd/janrain-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. rodgermd/janrain-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

rodgermd/janrain-bundle
=======================

Integrates Janrain into Symfony. Fork of https://github.com/evario/JanrainBundle

v1.0.2(12y ago)52975MITPHP

Since Dec 18Pushed 12y agoCompare

[ Source](https://github.com/rodgermd/JanrainBundle)[ Packagist](https://packagist.org/packages/rodgermd/janrain-bundle)[ Docs](https://github.com/rodgermd/JanrainBundle)[ RSS](/packages/rodgermd-janrain-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

Documentation
-------------

[](#documentation)

Yet another implementation of EvarioJanrainBundle Use at your own risc.

About
-----

[](#about)

JanrainBundle integrates Janrain into Symfony2 projects.

Requires FOSUserBundle and FOSJSRoutingBundle

Install bundle
--------------

[](#install-bundle)

Add this to composer.json:

```
"rodgermd/janrain-bundle": "dev-master"

```

Enable bundle in AppKernel.php

```
new Evario\JanrainBundle\EvarioJanrainBundle()

```

Configure
---------

[](#configure)

paramters.yml:

```
  janrain_api_key  : paste_api_key_here
  janrain_app_id   : paste_app_id_here
  janrain_app_name : paste_app_name

```

config.yml:

```
evario_janrain:
  api_key: %janrain_api_key%
  request_url: nothing

```

Add twig global variable:

```
twig:
    ...
    globals:
      ...
      janrain_application_name: %janrain_app_name%

```

services.yml

```
services:
  evario.janrain.user:
    class: Evario\JanrainBundle\Security\User\Provider  # extend this class as you wish
    arguments:
      userManager: "@fos_user.user_manager"
      validator: "@validator"
      apiKey: %janrain_api_key%
      container: "@service_container"

```

Change login form in security.yml, that's the sample:

```
main:
    pattern: ^/
        form_login:
            provider: evario_janrain
            csrf_provider: form.csrf_provider
            login_path: /account/login
            check_path: /account/login_check
            use_referer: true
        evario_janrain:
            use_forward: false
            login_path: /account/login
            check_path: /account/janrain-check
            provider: evario_janrain
        logout:
            path:   /account/logout
            anonymous: true

```

Add Janrain controller into routes. Probably change the route prefix

routing.yml

```
janrain_security:
  resource: "@EvarioJanrainBundle/Controller"
  type    : annotation
  prefix  : /secure

```

Use in templates
----------------

[](#use-in-templates)

Add javascript anywhere on the page. Janrain recoomends to do that in the tag, but it works even if it will be placed at the bottom of .

```
{% if not app.user %}

{% endif %}

```

Add html element with the class or id written below, that's important. If your janrain application is configured to show as a popup, use:

```
Sign-In

```

if widget:

```

```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity67

Established project with proven stability

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 ~33 days

Recently: every ~41 days

Total

6

Last Release

4720d ago

Major Versions

v0.1.2 → v1.02013-01-14

### Community

Maintainers

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

---

Tags

securityAuthenticationjanrain

### Embed Badge

![Health badge](/badges/rodgermd-janrain-bundle/health.svg)

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

###  Alternatives

[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M67](/packages/hwi-oauth-bundle)[lusitanian/oauth

PHP 7.2 oAuth 1/2 Library

1.1k23.2M118](/packages/lusitanian-oauth)[delight-im/auth

Authentication for PHP. Simple, lightweight and secure.

1.3k135.7k20](/packages/delight-im-auth)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[jmikola/auto-login

Facilitates automatic login via a single token for Symfony's Security component.

100307.6k2](/packages/jmikola-auto-login)[jmikola/auto-login-bundle

Authenticate users in your Symfony app via a single query parameter (e.g. email and newsletter links).

84323.6k](/packages/jmikola-auto-login-bundle)

PHPackages © 2026

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