2017 © Pedro Peláez
 

symfony-bundle ajax-login-bundle

Ajax Form Login for Symfony 2 PHP Framework

image

divi/ajax-login-bundle

Ajax Form Login for Symfony 2 PHP Framework

  • Friday, July 25, 2014
  • by Divi
  • Repository
  • 3 Watchers
  • 25 Stars
  • 35,266 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 6 Forks
  • 3 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Ajax Login Form Bundle

A simple AJAX form login for Symfony 2., (*1)

Prerequisites

This version of the bundle requires Symfony > 2.1. If you have the version 2.0 or 2.1, please switch to the branch 2.0-2.1., (*2)

Installation

Step 1: Download AjaxLoginBundle using composer

In your composer.json, add AjaxLoginBundle :, (*3)

{
    "require": {
        "divi/ajax-login-bundle": "dev-master"
    }
}

Now, you must update your vendors using this command :, (*4)

``` bash $ php composer.phar update divi/ajax-login-bundle, (*5)


### Step 2: Enable the bundle Enable the bundle using the AppKernel : ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Divi\AjaxLoginBundle\DiviAjaxLoginBundle(), ); }

Step 3: Configure your project

Configure your form login using security.yml, replace "form_login" authentication by "ajax_form_login", (*6)

``` yaml, (*7)

app/config/security.yml

security: firewalls: main: pattern: ^/ ajax_form_login: # ..., (*8)


## How to use ### Examples Two examples are available in the `Resources/views/Login` folder. Note: jQuery is required for these two examples. If not exists, it will be loaded dynamically (with Google API). The first example works with the AcmeBundle (Symfony standard) form login, the second with the [FOSUserBundle](https://github.com/FriendsOfSymfony/FOSUserBundle) form login. If you want to use the javascript part on your login twig form, just include the init file : ``` twig {% include 'DiviAjaxLoginBundle:Javascript:init.html.twig' with {'form_selector': '#your_form_id'} %}

Issue or new feature ?

Feel free to post your issue or feature request in the issue tracker !, (*9)

The Versions

25/07 2014

dev-master

9999999-dev https://github.com/Divi/AjaxLoginBundle

Ajax Form Login for Symfony 2 PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Sylvain Lorinet

authentication form ajax symfony login

16/01 2014

dev-2.0-2.1

dev-2.0-2.1 https://github.com/Divi/AjaxLoginBundle

Ajax Form Login for Symfony 2 PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Sylvain Lorinet

authentication form ajax symfony login