Download the PHP package rodgermd/janrain-bundle without Composer

On this page you can find all versions of the php package rodgermd/janrain-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package janrain-bundle

Documentation

Yet another implementation of EvarioJanrainBundle Use at your own risc.

About

JanrainBundle integrates Janrain into Symfony2 projects.

Requires FOSUserBundle and FOSJSRoutingBundle

Install bundle

Add this to composer.json:

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

Enable bundle in AppKernel.php

new Evario\JanrainBundle\EvarioJanrainBundle()

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

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 %}
  <script type="text/javascript" src="{{ asset('bundles/evariojanrain/js/janrain_login.js') }}" application_name="{{ janrain_application_name }}"></script>
{% 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:

<a class="janrainEngage" href="#">Sign-In</a>

if widget:

<div id="janrainEngageEmbed"></div>

All versions of janrain-bundle with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rodgermd/janrain-bundle contains the following files

Loading the files please wait ....