Download the PHP package lecodeurdudimanche/laravel-email-listener without Composer

On this page you can find all versions of the php package lecodeurdudimanche/laravel-email-listener. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-email-listener

Laravel Email Listener

Build status GitHub license Package version Downloads

A simple library to do actions when receiving emails, desgined to work with Laravel

Installation

Via composer :

You will need to install and enable some php extensions (php-imap, php-mbstring and php-mcrypt). With Ubuntu :

Configuration

You need to set the configuration of your IMAP or POP accounts. First run the following command to publish the configration in your config folder :

Next, modify the accounts configuration to add your own accounts.

This library uses laravel-imap for IMAP and POP communication, so if you need more help about IMAP and POP configuration take a look at their documentation.

Basic usage

In the schedule() method of your App\Console\Kernel class, add this line :

This will cause the EmailListener to load actions and filters from the configuration file (whose path must be provided in email-listener.config-file configuration value) and then run.

In order to create the configuration programtically, or to use the library without loading anything, you'll need to register Actions. First, you'll need to create an Action object, that contains a callback to be executed and a filter determining which email will trigger that action :

You can now bind that action to an EmailListener :

And then run it or save it :

For instance, this is the code to add an action to an existing listener and then save it :

You can load filters individually from JSON with the Filter::load() function and save them with the Filter::save() fonction like so :

Description of the expected format :

An example can be found in the tests directory.

Full API

Coming soon


All versions of laravel-email-listener with dependencies

PHP Build Version
Package Version
Requires php Version ^7
webklex/laravel-imap Version ^1
ext-imap Version *
ext-mbstring Version *
laravel/framework Version >=5.2 || >=6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lecodeurdudimanche/laravel-email-listener contains the following files

Loading the files please wait ....