Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ajax Login Bundle Laravel Package

divi/ajax-login-bundle

View on GitHub
Deep Wiki
Context7

Ajax Login Form Bundle

A simple AJAX form login for Symfony 2.

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.

Installation

Step 1: Download AjaxLoginBundle using composer

In your composer.json, add AjaxLoginBundle :

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

Now, you must update your vendors using this command :

$ php composer.phar update divi/ajax-login-bundle

Step 2: Enable the bundle

Enable the bundle using the AppKernel :

<?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"

# app/config/security.yml
security:
    firewalls:
        main:
            pattern: ^/
            ajax_form_login:
                # ...

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 form login.

If you want to use the javascript part on your login twig form, just include the init file :

{% 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 !

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui