PHPackages                             fenil/eatcard-mail-companion - 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. fenil/eatcard-mail-companion

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

fenil/eatcard-mail-companion
============================

This package is create mail service for eatcard subsystem.

1.0.0(3y ago)03MITBladePHP ^7.4|^8.0

Since Aug 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/fenilkalathiya-wot/Test-Email)[ Packagist](https://packagist.org/packages/fenil/eatcard-mail-companion)[ Docs](https://github.com/weboccult/eatcard-mail-companion)[ RSS](/packages/fenil-eatcard-mail-companion/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

[![](./Docs/images/EatCard-Weboccult.png)](https://github.com/weboccult/eatcard-companion)

 Eatcard Mail Companion
------------------------

[](#---eatcard-mail-companion)

[![Packagist PHP Version Support](https://camo.githubusercontent.com/3cd3a614957c1ea46f72595a6f3efebb9a45a3228a0ec45fc3b4aad7f923ef82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/3cd3a614957c1ea46f72595a6f3efebb9a45a3228a0ec45fc3b4aad7f923ef82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f7374796c653d666f722d7468652d6261646765)[![Latest Version on Packagist](https://camo.githubusercontent.com/07d7565b14741c9f5741d3c9b19943c0ae8f449326dd039ff06739c99b9f4918/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/07d7565b14741c9f5741d3c9b19943c0ae8f449326dd039ff06739c99b9f4918/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f7374796c653d666f722d7468652d6261646765)

[![GitHub Workflow Status (branch)](https://camo.githubusercontent.com/10cf346e81d24014bbfe5727adc3afb6ae51a39c6875cbd41b8a0f872be87e48/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7765626f6363756c742f656174636172642d636f6d70616e696f6e2f72756e2d74657374732f6d61737465723f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/10cf346e81d24014bbfe5727adc3afb6ae51a39c6875cbd41b8a0f872be87e48/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7765626f6363756c742f656174636172642d636f6d70616e696f6e2f72756e2d74657374732f6d61737465723f7374796c653d666f722d7468652d6261646765)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4f0dfcefaf18cbd6f22f729fb5927fa42231f972576d7d4939de9b69db290c03/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7765626f6363756c742f656174636172642d636f6d70616e696f6e2f72756e2d74657374733f6c6162656c3d7465737473267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/4f0dfcefaf18cbd6f22f729fb5927fa42231f972576d7d4939de9b69db290c03/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7765626f6363756c742f656174636172642d636f6d70616e696f6e2f72756e2d74657374733f6c6162656c3d7465737473267374796c653d666f722d7468652d6261646765)[![GitHub Workflow Status](https://camo.githubusercontent.com/f6d542ed1d3b58f0387ca228529476c4941bbdf6ac968ab343d6f22d5baf1919/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7765626f6363756c742f656174636172642d636f6d70616e696f6e2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d436865636b2532302532362532306669782532307374796c696e67266c6f676f3d676974687562267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/f6d542ed1d3b58f0387ca228529476c4941bbdf6ac968ab343d6f22d5baf1919/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7765626f6363756c742f656174636172642d636f6d70616e696f6e2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d436865636b2532302532362532306669782532307374796c696e67266c6f676f3d676974687562267374796c653d666f722d7468652d6261646765)

[![GitHub last commit](https://camo.githubusercontent.com/dda1807db0ca4e3753e50b6afb779230b27763fb63db1166b40904219487ca9f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/dda1807db0ca4e3753e50b6afb779230b27763fb63db1166b40904219487ca9f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f7374796c653d666f722d7468652d6261646765)[![GitHub Release Date](https://camo.githubusercontent.com/3ee9726af0954d3a4b7ea25c79cd367e325f685ce20d1d69d377723b3dfef71c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f6c6162656c3d4c617465737425323052656c65617365267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/3ee9726af0954d3a4b7ea25c79cd367e325f685ce20d1d69d377723b3dfef71c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f6c6162656c3d4c617465737425323052656c65617365267374796c653d666f722d7468652d6261646765)

[![Total Downloads](https://camo.githubusercontent.com/8c3b8bed3d8ded8108261d4baaa7ec46a57f5f68d2eb43dd6842f73254991559/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765626f6363756c742f656174636172642d636f6d70616e696f6e2e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/8c3b8bed3d8ded8108261d4baaa7ec46a57f5f68d2eb43dd6842f73254991559/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765626f6363756c742f656174636172642d636f6d70616e696f6e2e7376673f7374796c653d666f722d7468652d6261646765)[![GitHub contributors](https://camo.githubusercontent.com/dacadbaac44a9b9e9ebbd7a2ecb97d3ce9d7860c5486485ac467096fec8edfd5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/dacadbaac44a9b9e9ebbd7a2ecb97d3ce9d7860c5486485ac467096fec8edfd5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f7374796c653d666f722d7468652d6261646765)[![GitHub](https://camo.githubusercontent.com/f94e8145424eecb34c1fe9ebe0b8dfd64917b1f41c325ad20e4a479e2da25898/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/f94e8145424eecb34c1fe9ebe0b8dfd64917b1f41c325ad20e4a479e2da25898/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7765626f6363756c742f656174636172642d636f6d70616e696f6e3f7374796c653d666f722d7468652d6261646765)

---

[](#)

This companion package will help our team to manage to generic functionality and features at one place.

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

[](#installation)

#### You can install the package via composer:

[](#you-can-install-the-package-via-composer)

```
composer require weboccult/eatcard-mail-companion
```

Usage
-----

[](#usage)

```
use Weboccult\EatcardMailCompanion\Helpers\eatcardMailSend;
```

Available Services
------------------

[](#available-services)

- Create Mail : To generate mail template based on requirements
- Send Mail : To send mail via Laravel Queue/Jobs

Companion Config
----------------

[](#companion-config)

here's how you can use publish companion config file to manage numerous settings

```
php artisan eatcardMailcompanion:publish --type=config
```

It will publish eatcardMailCompanion.php to your parent project

### Basic Usage

[](#basic-usage)

#### Create Mail

[](#create-mail)

- Payload : user requirements
- subject : Set mail subject
- recipients : Recipients user email address
- mailType : Type of mail (For developer)
- fromName : Mail sender name
- entityType : Type of mail (Where to get data)
- entityId : Get data based on entityId
- dispatch : Mail data dispatch in queue
- template : Direct send mail template to user without details
- bcc : Extra email addresses
- cc : Extra email addresses

```
use Weboccult\EatcardMailCompanion\Helpers\eatcardMailSend;

eatcardMailSend()
    ->payload(['store_id' => $order['store_id'], 'recipient_type' => 'order.done'])
    ->subject(__('messages.takeaway_order_done_mail_sub') . ' ' . getDutchDate($order['order_date']))
    ->recipients($order['email'])
    ->bcc([])
    ->cc([])
    ->mailType('Order done mail from admin')
    ->fromName(env('MAIL_FROM_NAME'))
    ->template('Reservation create')
    ->entityType('order')
    ->entityId($order['id'])
    ->dispatch();

OR
use Weboccult\EatcardMailCompanion\EatcardMailCompanion;

EatcardMailCompanion::
    payload(['store_id' => $order['store_id'], 'recipient_type' => 'order.done'])
    ->subject(__('messages.takeaway_order_done_mail_sub') . ' ' . getDutchDate($order['order_date']))
    ->recipients($order['email'])
    ->bcc([])
    ->cc([])
    ->mailType('Order done mail from admin')
    ->fromName(env('MAIL_FROM_NAME'))
    ->template('Reservation create')
    ->entityType('order')
    ->entityId($order['id'])
    ->dispatch();

```

#### Send Mail

[](#send-mail)

- Mail send from jobs (SendMailJobs)
- Create mail entry in mongoDb database after sending mail successfully to user
- If something went wrong in mail sending part then data moved on failed jobs table

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

1403d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c82f9790e5555960a6d0290176e75130efdb442e46cab835a7fb40b0ce2f6d48?d=identicon)[fenilkalathiya-wot](/maintainers/fenilkalathiya-wot)

---

Top Contributors

[![fenilkalathiya-wot](https://avatars.githubusercontent.com/u/74408182?v=4)](https://github.com/fenilkalathiya-wot "fenilkalathiya-wot (7 commits)")

---

Tags

fenileatcard-mail-companion

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fenil-eatcard-mail-companion/health.svg)

```
[![Health](https://phpackages.com/badges/fenil-eatcard-mail-companion/health.svg)](https://phpackages.com/packages/fenil-eatcard-mail-companion)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[illuminate/mail

The Illuminate Mail package.

5910.6M502](/packages/illuminate-mail)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)

PHPackages © 2026

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