Download the PHP package hexters/maillens without Composer

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

MailLens

MailLens

Latest Stable Version Total Downloads Tests License

MailLens catches the email your app sends while you are developing, so you can read it in the browser instead of wiring up a real inbox. Set one env variable and every message your Laravel app tries to send gets saved and shown at /mail. There is nothing to install outside Composer, no Docker, and no SMTP catcher running in the background.

If you have used Mailtrap or Mailpit before, it is the same idea, except it lives inside your own app.

Requirements

Install

Run the migration to create the table MailLens stores mail in:

Then point the mailer at MailLens in your .env:

Now send mail the way you normally would and open /mail to read it. You do not need to touch config/mail.php; MailLens adds the lens mailer for you.

How it works

Setting MAIL_MAILER=lens sends your mail through a transport that stores the message instead of delivering it. It keeps the subject, the sender and recipients, the HTML and text bodies, any attachments, and the raw source. The /mail page puts the message list on one side and the selected message on the other, with tabs for HTML, plain text, and source, plus links to download any attachments.

Queued mail

MailLens only changes where your mail ends up, not how your queue works. If a mailable is queued (ShouldQueue, Mail::queue(), or a queued notification), it shows up in /mail after the queue runs the job, the same as it would before a real send:

So if a queued email never shows up, check that a worker is running before you blame MailLens.

Turning it off

There is no separate switch. MAIL_MAILER is the switch. When it is set to anything other than lens, MailLens stays quiet: it does not register the /mail route and nothing routes through it. Keep MAIL_MAILER=lens out of your production .env and your mail will send for real there.

Password protection

By default /mail is open, which is fine on your own machine. If the inbox lives somewhere other people can reach, such as a shared staging server, set a password and MailLens asks for it before showing anything:

Leave it unset and there is no lock screen.

Configuration

Most people never need this, but you can publish the config file to change the defaults:

Captured mail is saved on your app's default database connection.

Contributing

Bug reports and pull requests are welcome. Have a look at CONTRIBUTING.md first.

License

MIT. See LICENSE.


All versions of maillens with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/mail Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/routing 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 hexters/maillens contains the following files

Loading the files please wait ...