PHPackages                             rayhan/ray-mailer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. rayhan/ray-mailer

ActiveCakephp-plugin[Mail &amp; Notifications](/categories/mail)

rayhan/ray-mailer
=================

A mailer plugin for CakePHP3 using database driven Layouts and Templates.

v0.1.7-beta(9y ago)0514MITPHPPHP &gt;=5.4.16

Since Oct 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rayhan/ray-mailer)[ Packagist](https://packagist.org/packages/rayhan/ray-mailer)[ Docs](https://github.com/rayhan/ray-mailer)[ RSS](/packages/rayhan-ray-mailer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

[![Build Status](https://camo.githubusercontent.com/930834c871cd997165304e9b1783e946efbae0f74b1effa75537bcd6407b6b5e/68747470733a2f2f7472617669732d63692e6f72672f72617968616e2f5261794d61696c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rayhan/RayMailer)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)

RayMailer plugin for CakePHP
============================

[](#raymailer-plugin-for-cakephp)

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require rayhan/ray-mailer

```

Configuration
-------------

[](#configuration)

Add following line to your app bootstrap.php file.

```
Plugin::load('RayMailer', ['routes' => true]);

```

Database
--------

[](#database)

Add database schema from the config/Schema/raymailer.sql file.

Usage
-----

[](#usage)

#### Create Layouts and Templates

[](#create-layouts-and-templates)

Access templates at http://path\_to\_your\_cake\_installation/ray-mailer/templates

Create database layout and templates as necessary.

#### Load mailer class

[](#load-mailer-class)

```
use RayMailer\Mailer\RayMailer;

```

#### Send email

[](#send-email)

```
$mailer = new RayMailer();
$result = $mailer->deliver('welcome-email', ['to' => 'example@example.com', 'param1' => 'Value of param1'], ['debug' => false]);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

8

Last Release

3503d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ecc174a33ec1ba32b17fdf11c3a1760032defc7248612f57295697c27909dd32?d=identicon)[raynux](/maintainers/raynux)

---

Top Contributors

[![rayhan](https://avatars.githubusercontent.com/u/73029?v=4)](https://github.com/rayhan "rayhan (43 commits)")

---

Tags

emailcakephpcronpreview

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rayhan-ray-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/rayhan-ray-mailer/health.svg)](https://phpackages.com/packages/rayhan-ray-mailer)
```

###  Alternatives

[lorenzo/cakephp-email-queue

Queue, preview and and send emails stored in the database

57121.5k1](/packages/lorenzo-cakephp-email-queue)[zbateson/mail-mime-parser

MIME email message parser

53949.2M79](/packages/zbateson-mail-mime-parser)[narendravaghela/cakephp-mailgun

Mailgun plugin for CakePHP - Send emails using Mailgun API

23356.6k](/packages/narendravaghela-cakephp-mailgun)[gourmet/email

Gourmet Email Plugin for rapid CakePHP application development.

175.2k](/packages/gourmet-email)[iandenh/cakephp-sendgrid

SendgridEmail plugin for CakePHP

16123.4k](/packages/iandenh-cakephp-sendgrid)[ker0x/cakephp-push

CakePHP plugin to send push notification through services like FCM

1815.7k](/packages/ker0x-cakephp-push)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
