2017 © Pedro Peláez
 

library imap-authentication

image

ronaldcastillo/imap-authentication

  • Wednesday, July 30, 2014
  • by ronaldcastillo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel 4 IMAP Authentication Package


Provides an IMAP authentication provider for the Laravel 4 framework, (*1)


Installation

Add the following lines to your composer.json file:, (*2)

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

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

composer update

Registering the package

Add the following Service Provider to your providers array in app/config/app.php:, (*4)

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

Update Laravel's authentication driver configuration

Change your driver to 'imap' in app/config/auth.php:, (*5)

'driver' => 'imap',

Publish the configuration files

Run this on the command line from the root of your project:, (*6)

php artisan config:publish ronaldcastillo/imap-authentication

This will publish the necessary configuration to app/config/ronaldcastillo/imap-authentication/., (*7)

Within the configuration files we have two options:, (*8)

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., (*9)

The Versions

30/07 2014

dev-master

9999999-dev

  Sources   Download

The Requires

 

laravel authentication auth imap