Download the PHP package sethsandaru/laravel-mail-switcher without Composer

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

Laravel Mail Switcher

Build and Test codecov

Laravel Mail Credentials Switcher is a library which helps you to:

Use-case

You have a personal Laravel Application (small or medium) or even you're a Startup. Of course, you have a tight budget.

So you probably can't spend much money for Email Provider Services to send out your email to your Users/Customers.

There are a lot of Email Provider Services out there that actually give you a specific amount per month (for free) to send out emails.

So, with Laravel Mail Switcher, you will have a big advantage to achieve that.

All you need to do, is prepare the credential/information and let Laravel Mail Switcher will do that for you.

Email Services with Free Usage

And many more... With Laravel Mail Switcher, you can manage the credentials and use all of them until the free usage ran out!

Limitation

Laravel Mail Switcher is only support for SMTP driver at the moment.

Coming soon for others.

Requirement

Installation

How to use?

Laravel Mail Switcher doesn't need a GUI to work with. We will do all the stuff in Artisan Console.

First, you need to run the migration:

Then, you can traverse the instructions below!!

List All Emails

Note: You can add --force to show all Credentials (even the exceeded usage credentials)

Add Email Credential

You will see some questions that need your answers in order to add. Follow the instruction!!

Delete an Credential

Reset Threshold of expired Credentials

Like, your email credential is daily usage and exceeded yesterday. So, today we're gonna recover it to use it again.

Cronjob Setup

By default, I will let you configure the Cron Job / Task Scheduling in your Kernal.php

Best practice should be daily check at 00:00

or every minute:

Tech Specs / QA Times

Why did I choose to Overwrite the SMTP by listen to Mail's Events instead of ServiceProvider?

Because in real-life projects, not all the time, we will send out the emails. If I go with that way, then it probably costs 1 query everytime there is a connection to our application which isn't good and nice at all.

Improve this library?

Feel free to fork it and send me the PR, I'll happily review and merge it (if it's totally make sense of course).

Remember to write Unit Test also! Otherwise, I'll reject it.

Coding Style must follow PSR-1 & PSR-12.

Note

After your project is growing up, making good, then, don't forget to subscribe to an Email Service Provider for long-term supports and absolutely stable in production.

Copyright

2022 by Seth Phat


All versions of laravel-mail-switcher with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^9|dev-master
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 sethsandaru/laravel-mail-switcher contains the following files

Loading the files please wait ....