Download the PHP package inventor96/mako-mailer without Composer

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

Mako Mailer

A simple emailing package for the PHP Mako framework. It provides an abstraction layer over email sending libraries, allowing for easy swapping of underlying implementations. The default adapter uses PHPMailer (included in this package).

Installation

  1. Install the composer package:

  2. Enable the package in Mako:
    app/config/application.php:

    This will automatically register the Mailer class in the Mako dependency injection container, including the alias mailer.

Configuration

Create a new file at app/config/packages/mailer/email.php, and add any of the following applicable configuration options:

Usage

Basics

You can use the inventor96\MakoMailer\Mailer or the mailer alias in the Mako dependency injection container. Here's a basic example in the context of a controller method:

Email Templates

You can also use Mako's view templates for email content. Here's an example:

EmailUser

The EmailUser class is a simple value object that represents an email user (i.e., the sender or recipient of an email). It contains the user's email address and name. You can either create an instance of EmailUser directly (as shown above) or use the static fromUser() method to create an instance from an object that implements inventor96\MakoMailer\interfaces\EmailUserInterface:

Reply-To

You can set a default reply-to address in the email config (reply_to_email and reply_to_name). You can also override it per-email by passing an EmailUser as the reply-to:

Attachments

You can attach files to your emails using the inventor96\MakoMailer\Attachment class. Attachments are passed as the last argument to send() or sendTemplate():

The Attachment class supports both file attachments (Attachment::fromPath()) and string data attachments (Attachment::fromData()). It also accepts optional encoding, mime type, and disposition arguments. The Attachment::DISPOSITION_INLINE disposition can be used for embedded images.


All versions of mako-mailer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
mako/framework Version 10.* || 11.* || 12.*
phpmailer/phpmailer Version ^6.0 || ^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 inventor96/mako-mailer contains the following files

Loading the files please wait ...