Download the PHP package copain/laravel-mail-dashboard without Composer

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

Laravel Mail Dashboard

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A mail dashboard for Laravel. The package listens to the MessageSent event and captures every outgoing email — whatever mail driver you use (log, smtp, ses, array, …) — then gives you a /mail-dashboard page (React + Tailwind + shadcn/ui) to browse them. No Mailpit, no external service, no database.

Requirements

Installation

Install the package via composer:

That's it. Send an email, then visit /mail-dashboard in your browser. The dashboard ships with pre-built assets — there is nothing to publish and no build step in your application.

Note: capture and dashboard are only enabled when APP_ENV=local (or when MAIL_DASHBOARD_ENABLED=true). Every route returns a 404 otherwise, and nothing is stored.

Configuration

You can publish the config file with:

This is the contents of the published config file:

Changing the URL

Set MAIL_DASHBOARD_PATH=mailbox (or edit the config) and the dashboard moves to /mailbox.

Authorization

Like Horizon and Telescope, the dashboard is open in the local environment. To allow access anywhere else — or to restrict it in local too — define a viewMailDashboard gate, for instance in app/Providers/AppServiceProvider.php:

When the gate is defined it has the final say in every environment. Without it, any non-local environment gets a 403.

Choosing where your emails are stored

By default, captured emails are written to storage/mail-dashboard on the local filesystem. To keep control of the data — or because your platform's filesystem is ephemeral (Laravel Cloud, Vapor, containers) — point the dashboard at any disk defined in config/filesystems.php:

Everything (capture, listing, preview, deletion) then goes through that disk, so your emails live in your own bucket.

JSON API

The dashboard is powered by a small JSON API you can also use directly:

Method URI Description
GET /mail-dashboard/api/emails List all captured emails
GET /mail-dashboard/api/emails/{id} Full email (bodies, headers, raw MIME source)
GET /mail-dashboard/api/emails/{id}/attachments/{index} Download an attachment
DELETE /mail-dashboard/api/emails/{id} Remove one captured email
DELETE /mail-dashboard/api/emails Remove all captured emails

Frontend development

The UI lives in resources/js (React 19, Tailwind CSS 4, shadcn/ui) and is compiled to resources/dist, which is committed so consumers never need Node:

New shadcn components can be added with npx shadcn@latest add <component> — see components.json.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

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


All versions of laravel-mail-dashboard with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^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 copain/laravel-mail-dashboard contains the following files

Loading the files please wait ...