Installation


Repository: webklex/laravel-imap

Latest Version on Packagist Software License Build Status Total Downloads Hits

Installation of laravel-imap is a trivial process.In fact, there is no real installation.

Install php dependencies

laravel-imap requires two common php modules mbstring and mcrypt.

sudo apt-get install php*-mbstring php*-mcrypt
sudo apache2ctl graceful

Install with composer

The easiest way to install laravel-imap is to require it using Composer.

composer require webklex/laravel-imap

If you want to check out a different version of laravel-imap, add the desired version as an additional parameter:

composer require webklex/laravel-imap:2.2.0

Legacy support

If you plan to use legacy protocols such as pop3 or nntp you also have to install the native php php-imap module:

sudo apt-get install php*-imap
sudo apache2ctl graceful

Older Laravel versions < 5.5

If you're using Laravel >= 5.5, package discovery will configure the service provider and Client alias out of the box. Otherwise, for Laravel <= 5.4, edit your config/app.php file and:

Publish the configuration file

It's highly recommended you use and modify your own copy of the config file. Execute the following command to publish the package config file. It will be placed under config/imap.php.

php artisan vendor:publish --provider="Webklex\IMAP\Providers\LaravelServiceProvider"