Download the PHP package danialpanah/mail-connect without Composer
On this page you can find all versions of the php package danialpanah/mail-connect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danialpanah/mail-connect
More information about danialpanah/mail-connect
Files in danialpanah/mail-connect
Package mail-connect
Short Description Laravel Package for Connect to Email Using IMAP
License MIT
Informations about the package mail-connect
Laravel Email Connect (IMAP)
- Introduction
- Installation
- Configuration
- Usage
- Support & Security
- License
- ToDo
Introduction
This Laravel package can open any Email Mailbox and access to its directories like inbox, sent items etc. Current version can only use the Imap protocol (PHP Imap), in the future releases using POP3 protocol will be added.
Installation
- Use following command to install:
This package supports Laravel auto-discovery feature. If you are using Laravel 6.x or greater no need to do any further actions, otherwise follow below steps to add this package manually to your application.
-
Add the service provider to your
providers[]array inconfig/app.phpin your laravel application: - For using Laravel Facade add the alias to your
aliases[]array inconfig/app.phpin your Laravel application:
Configuration
-
After installation, you need to add your Email settings. You can update config/mailconnect.php published file or in you Laravel .env file.
-
Run the following command to publish the configuration file:
-
config/webpay.php
- Add this to
.env.exampleand.envfiles:
Usage
Following are some examples which you can use to initiate connection to your mailbox:
-
Open Imap connection and access to your mailbox contents:
-
Using Facades :
-
Sample Response of Verify Successful Payment:
- Laravel Sample Controller:
Support & Security
This package supports Laravel 8 or greater with PHP 8.0 and above.
- In case of discovering any issues, please create one on the Issues section.
- For contribution, fork this repo and implements your code then create a PR.
License
This repository is an open-source software under the MIT license.
ToDo
- Write tests.
- Add POP3 protocol.