Download the PHP package rnsharma93/laravel-email-sandbox without Composer

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

Laravel Email Sandbox

A beautiful, self-hosted email testing driver & dashboard for Laravel β€” ideal for staging environments.

Latest Version on Packagist Total Downloads PHP Version License


Laravel Email Sandbox allows you to easily intercept, capture, and preview outgoing emails inside your application without sending real emails to your users. It comes with a stunning, highly responsive dashboard deeply inspired by Mailpitβ€”built natively for Laravel with zero NPM dependencies.

Instead of paying for a hosted inbox (like Mailtrap) or installing extra software (like Mailpit) on your staging server, this package captures every outgoing email straight into your own database and renders it in a built-in dashboard.

πŸ“‹ Requirements

πŸ“‘ Table of Contents

✨ Key Features


πŸ“Έ Screenshots

Inbox

Email Preview (HTML / Text / Headers / Raw)


πŸš€ Installation

Require the package via Composer:

Publish the configuration file (optional β€” sensible defaults are used otherwise):

The package migrations are loaded automatically. Run them to create the email_messages table:

πŸ“¨ Usage

To start capturing outgoing emails, open your .env file and change your mail transport driver to email-sandbox:

Now, any email sent by Laravel will be intercepted and stored in your database & local storage instead of actually being delivered.

You can view all captured emails by navigating to: πŸ‘‰ http://your-app.test/email-sandbox

[!WARNING] This driver never delivers real email. Use it on local and staging only. If you set MAIL_MAILER=email-sandbox in production, your real outgoing emails will be silently captured instead of sent to your users.

Capturing only some emails

If you'd rather keep your default mailer untouched and only route specific messages to the sandbox, send them through the email-sandbox mailer explicitly:


πŸ” Access Control & Security

By default, the Email Sandbox UI is fully accessible in the local environment.

However, if you deploy this to production, staging, or testing environments, the route is completely locked down by default. To authorize specific users to view the dashboard in non-local environments, you must define the accessEmailSandbox Gate in your application's App\Providers\AppServiceProvider:


🧰 Configuration

After publishing the config file, you can adjust the following options in config/email-sandbox.php:

Option Default Description
route_prefix email-sandbox URL prefix for the dashboard routes.
storage_path storage/app/email-sandbox Disk location for raw .eml snapshots and email attachments.

πŸ‘¨β€πŸ’» Developed By

Ram Sharma

If you find this package helpful in your day-to-day development and testing workflow, please consider starring the repository on GitHub!

πŸ“œ License & Open Source

The Laravel Email Sandbox package is open-source software licensed under the MIT license.

You are completely free to use, modify, and distribute this package in both personal and commercial projects. Contributions, issues, and feature requests are always welcome! Feel free to check the issues page if you want to contribute.


All versions of laravel-email-sandbox with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/mail Version ^10.0|^11.0|^12.0
symfony/mailer Version ^6.2|^7.0
symfony/mime Version ^6.2|^7.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 rnsharma93/laravel-email-sandbox contains the following files

Loading the files please wait ...