Download the PHP package oneduo/laravel-mail-scheduler without Composer

On this page you can find all versions of the php package oneduo/laravel-mail-scheduler. 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-mail-scheduler

Laravel Mail Scheduler

![Status](https://img.shields.io/badge/status-active-success.svg) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE) ![PHP](https://img.shields.io/badge/PHP-8.1-blue.svg) [![Latest Version on Packagist](https://img.shields.io/packagist/v/oneduo/laravel-mail-scheduler.svg)](https://packagist.org/packages/oneduo/laravel-mail-scheduler) [![Downloads](https://img.shields.io/packagist/dt/oneduo/laravel-mail-scheduler.svg)](https://packagist.org/packages/oneduo/laravel-mail-scheduler) [![Run tests](https://github.com/oneduo/laravel-mail-scheduler/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/oneduo/laravel-mail-scheduler/actions/workflows/tests.yml)

This package gives you the ability to send emails in batches. After creating ScheduledEmails you may send emails using the auto schedule feature or registering the command in the Console kernel yourself.

Table of Contents

Getting Started

Prerequisites

This package requires the following :

Installing

To get started, you will need to install the following dependencies :

That's it, you're ready to go!

Configuration

You may publish the package's configuration by running the following command :

Note You can find details about the configuration options in the configuration file section.

Usage

The package provides a fluent facade to create a scheduled email:

Encryption

For security reasons you may want to encrypt the mailable to protect sensible data. You may use the encrypted method:

Configure mailer

You may want to use a specific mailer for schedule email.

Link email to a source model

You may want to link a ScheduledEmail instance to one of your models using a morphTo relationship. It could be a user or a product. It's up to you.

Send emails

The package can register the command for you when auto_schedule is true. You may configure the CRON expression with schedule_cron.

If you want more control on the scheduler, you may disable the auto_schedule and register the command yourself:

Error handling

If an exception occurs while sending an email, the exception message and stacktrace will be saved into the model. The command will resend emails with an error status till max_attempts is reached.

Configuration file

Key Description Type Default
max_attempts Maximum number of attempts to send an email int 3
batch_size Number of scheduled emails to send in a batch int 100
auto_schedule Toggles whether or not to register the send email command into the Laravel scheduler bool true
schedule_cron The CRON expression used to send emails string */5 * * * *
table_name The table name of the ScheduledEmail model string scheduled_emails
insert_chunk_size The chunk size to use to insert emails when using the createMany method int 500

Authors

See also the list of contributors who participated in this project.

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

Please review our security policy on how to report security vulnerabilities.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-mail-scheduler with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
illuminate/contracts Version ^8.0 || ^9.0 || ^10.0 || ^11.0
spatie/laravel-package-tools Version ^1.12
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 oneduo/laravel-mail-scheduler contains the following files

Loading the files please wait ....