ronaldcastillo/imap-authentication

31
Install
composer require ronaldcastillo/imap-authentication
PHP:>=5.3.2
Last Updated:Jul 30, 2014
Links: GitHub  ·  Packagist
Maintainer: ronaldcastillo

Laravel 4 IMAP Authentication Package


Provides an IMAP authentication provider for the Laravel 4 framework


Installation

Add the following lines to your composer.json file:

"require": {
    "ronaldcastillo/imap-authentication": "dev-master"
}

Now, run composer update on the command line from your project's root directory:

composer update

Registering the package

Add the following Service Provider to your providers array in app/config/app.php:

'providers' => array(
    'RonaldCastillo\Imap\ImapServiceProvider'
)

Update Laravel's authentication driver configuration

Change your driver to 'imap' in app/config/auth.php:

'driver' => 'imap',

Publish the configuration files

Run this on the command line from the root of your project:

php artisan config:publish ronaldcastillo/imap-authentication

This will publish the necessary configuration to app/config/ronaldcastillo/imap-authentication/.

Within the configuration files we have two options:

return array(
    'identifier' => 'username',
    'datasource' => '{localhost:143}/readonly'
);

The identifier indicates the name of the field that will be used as the username for the authentication, while the datasource value is as specified in the php manual for the imap_open() function.

Related Packages

restricted/authchain

Laravel 4 chain authentication (LDAP, IMAP, IP, Eloquent)

100 5
sarav/laravel-multiauth

A Simple Laravel Package for handling multiple authentication

31,018 50
tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

52,310,851 11,496
johnturingan/laravel-jwt-auth

JSON Web Token Authentication for Laravel 4 and 5. Modification from Tymon's jwt...

4,455 0
vinkas/firebase-auth-laravel

Firebase Authentication package for Laravel PHP Framework

2,082 39