Download the PHP package dinubo/laravel-mailer without Composer

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

Mailer

Latest Version on Packagist Tests Total Downloads

A Laravel newsletter / mailer package: schedule and send segmented newsletters, resolve per-recipient placeholders, track opens and clicks, handle unsubscribes, and process provider webhooks (Postmark, Resend) — with a built-in admin UI.

Installation

Via Composer:

The service provider and the package's migrations are auto-discovered. Run them:

Publish whatever you want to customise:

Usage

Routes

All routes are mounted under the /mailer prefix and named with a mailer. prefix. The admin UI lives at /mailer/newsletters. Middleware is configurable per group (user, admin, callback) in config/mailer.php.

Group Examples
user mailer.open, mailer.click, mailer.unsubscribe
admin mailer.newsletters.*, mailer.newsletters.statistics.*
callback mailer.callback.postmark, mailer.callback.resend

The callback (webhook) routes verify the provider signature when the matching secret is configured (see Webhooks); the mailer.middleware.callback group is available for any additional middleware.

Recipients

By default newsletters are sent to your application's configured user provider model (config('auth.providers.users.model')). Override it in config/mailer.php via recipient_model.

Placeholders, filters & segments (registrar)

Placeholders and filters use closures, so they are registered on the Mailer class rather than stored in config (this keeps config cacheable). Register them from a service provider's boot() method:

A Filter may define a query: closure (constrains the recipient query) and/or a collection: closure (post-filters the resulting collection).

Events & actions

Trigger event-scheduled newsletters from your app, and compute extra per-recipient placeholders at send time:

Actions work similarly (Action::make(...)->execute(...), registered via Mailer::actions([...])) for placeholders that run logic per recipient.

Admin access

The admin UI (/mailer/newsletters) is gated by the admin middleware group, which by default only allows the local environment. Authorize real users with Mailer::auth():

Webhooks

Bounce/complaint webhooks from Postmark and Resend update delivery state. Set the matching secret to enable signature verification (without it, requests are accepted and a warning is logged):

Sending

Newsletters scheduled in the admin UI are dispatched by the scheduler command. Add it to your console schedule:

Change log

Please see the changelog for more information on what has changed recently.

Testing

The package uses orchestra/testbench:

Contributing

Please see CONTRIBUTING.md for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.


All versions of laravel-mailer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
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 dinubo/laravel-mailer contains the following files

Loading the files please wait ...