Skip to content
This repository was archived by the owner on Dec 27, 2019. It is now read-only.

laravel-enso/laravel5-imap-authentication

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

laravel5-imap-authentication

Codacy Badge StyleCI Total Downloads Latest Stable Version

An authentication provider for Laravel 5 that allows you to authenticate via IMAP.

Heavily inspired by peckrob's package.

Installation

Add the following line to the require section of your composer.json:

{
    "require": {
        "peckrob/laravel5-imap-authentication": "dev-master"
    }
}

Update your packages with composer update or install with composer install.

Laravel 5

Setup

Add the ServiceProvider to the providers array in app/config/app.php.

        App\Providers\AppServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,
        ...
        peckrob\Laravel5ImapAuthentication\ImapAuthServiceProvider::class,

In your app/config/auth.php, set the authentication driver to imap.

    'driver' => 'imap',

Configuration

By default it will attempt to connect to localhost. If you want something different, add IMAP_AUTH_SERVER, IMAP_AUTH_PORT, IMAP_PARAMETERS to the .env file:

IMAP_AUTH_SERVER
IMAP_PORT
IMAP_PARAMETERS

Contribute

Contributions are welcome. :)

https://github.com/peckrob/laravel5-imap-authentication

About

An authentication provider for Laravel 5 that allows you to authenticate via IMAP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%