Download the PHP package masterro/laravel-mail-viewer without Composer

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

Latest Stable Version Total Downloads License

StandWithUkraine

Laravel Mail Viewer

Easily log, view, and search outgoing emails directly in your browser.

This package logs all outgoing emails to a database and provides a web interface to view them, formatted as they appear in modern email clients like Gmail.


Features

Installation

Step 1: Install via Composer

Run the following command in your terminal:

Step 2: Publish Assets & Configurations

Step 3: Run Migrations

Step 4: View Emails

Visit /_mail-viewer in your browser to access the email viewer.

Note: The route can be customized in the configuration file.


Configuration

You can adjust default settings in the config/mail-viewer.php file.

Data Pruning

The package supports Laravel's Model Pruning. Define how many days emails should be retained in the configuration:


Production Usage

By default, the email viewer is publicly accessible. In a production environment, it's highly recommended to restrict access using middleware or something like Access Screen package. Alternatively, you can disable the package in production environments.

Restrict Access with Middleware

Modify your config/mail-viewer.php to apply authorization:

Note: viewMailLogs is just an example ability you can register via Laravel’s Authorization Gate. This ability is not included in the package.

You can also limit access by IP address in App\Http\Middleware\RestrictMailViewerAccess.php:

Apply it in config:

Now, only authorized users or allowed IPs can access the mail viewer.


Disable package in production mode

Disable auto-discovery:

Register package for non-production environments

In your application's ServiceProvider

License

This package is open-source software licensed under the MIT license.


Credits

Developed by MasterRO.


All versions of laravel-mail-viewer with dependencies

PHP Build Version
Package Version
Requires doctrine/dbal Version ^3.5 | ^4.0 | ^5.0
illuminate/database Version ^10.0|^11.0|^12.0 | ^13.0
illuminate/events Version ^10.0|^11.0|^12.0 | ^13.0
illuminate/mail Version ^10.0|^11.0|^12.0 | ^13.0
illuminate/routing Version ^10.0|^11.0|^12.0 | ^13.0
illuminate/support Version ^10.0|^11.0|^12.0 | ^13.0
illuminate/view Version ^10.0|^11.0|^12.0 | ^13.0
nesbot/carbon Version >=2.62.1
opcodesio/mail-parser Version ^0.2.1
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 masterro/laravel-mail-viewer contains the following files

Loading the files please wait ...