PHPackages                             khuloodbatis/notification-generator - 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. khuloodbatis/notification-generator

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

khuloodbatis/notification-generator
===================================

Laravel package to generate notifications, events, listeners, markdown + translations

00PHP

Since Nov 20Pushed 5mo agoCompare

[ Source](https://github.com/KhuloodBatis/notification-generator)[ Packagist](https://packagist.org/packages/khuloodbatis/notification-generator)[ RSS](/packages/khuloodbatis-notification-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

notification-generator
======================

[](#notification-generator)

Notification Generator for Laravel
==================================

[](#notification-generator-for-laravel)

A lightweight Laravel package that automatically generates a full Notification workflow:

- Notification (Markdown or Default)
- Event
- Listener
- Translations (English + Arabic)
- Auto-registers service provider using Laravel Auto-Discovery
- Clean, simple, and extendable architecture

Perfect for teams who repeatedly create similar notifications and want consistent scaffolding with one Artisan command.

---

🚀 Features
----------

[](#-features)

- Generate **Notification + Event + Listener** in one command
- Auto-create **Markdown email template**
- Auto-create **Localization files** (`resources/lang/en` + `resources/lang/ar`)
- Supports **Laravel 10 &amp; Laravel 11**
- PSR-4 package structure
- Plug-and-play service provider auto-discovery
- Clean code, extendable stubs, and maintainable architecture

---

🧩 Installation
--------------

[](#-installation)

Require the package through Composer:

```
composer require khuloodbatis/notification-generator:dev-main
If you use a specific version:
composer require khuloodbatis/notification-generator:^1.0

Laravel will automatically register the service provider via auto-discovery.

📦 Publish Stubs & Config (optional)
If your package provides stubs or configuration:

bash
Copy code
php artisan vendor:publish --tag=notification-generator
🛠️ Usage
Generate a complete Notification workflow:

bash
Copy code
php artisan khuloodbatis:make-notification UserActivated
This command will generate:

swift
Copy code
app/Notifications/UserActivated.php
app/Events/UserActivatedEvent.php
app/Listeners/UserActivatedListener.php
resources/views/mail/user-activated.blade.php
lang/en/notifications.php
lang/ar/notifications.php
📝 Output Structure
1. Notification
Located at:

swift
Copy code
app/Notifications/{Name}.php
2. Event
swift
Copy code
app/Events/{Name}Event.php
3. Listener
swift
Copy code
app/Listeners/{Name}Listener.php
4. Markdown Template
swift
Copy code
resources/views/mail/{kebab-case-name}.blade.php
5. Localization
bash
Copy code
resources/lang/en/notifications.php
resources/lang/ar/notifications.php
🧪 Testing
You can run PHPUnit tests:

bash
Copy code
php artisan test
or:

bash
Copy code
vendor/bin/phpunit
(If your package includes tests)

🧱 Package Structure
css
Copy code
notification-generator/
├── src/
│   ├── Commands/
│   │   └── MakeFullNotificationCommand.php
│   ├── NotificationGeneratorServiceProvider.php
│   └── ...
├── composer.json
├── README.md
└── ...
🧬 Requirements
PHP 8.1+

Laravel 10 or Laravel 11

🔧 Configuration
If needed, you may override:

default stubs

markdown paths

language structure

By publishing the configuration:

bash
Copy code
php artisan vendor:publish --tag=notification-generator

🤝 Contributing

Contributions, issues, and feature requests are welcome!
Feel free to open a PR or Issue.

🪪 License

This package is open-source software licensed under the MIT License.

🧷 Author

Khulood Batis
Laravel Backend Developer
GitHub: https://github.com/khuloodbatis

📚 Reliable Sources Used

Laravel Package Development
https://laravel.com/docs/11.x/packages

Composer Package Publishing (Packagist)
https://getcomposer.org/doc/04-schema.md

Laravel Notifications (Markdown)
https://laravel.com/docs/11.x/notifications
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance48

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![KhuloodBatis](https://avatars.githubusercontent.com/u/50932099?v=4)](https://github.com/KhuloodBatis "KhuloodBatis (17 commits)")

### Embed Badge

![Health badge](/badges/khuloodbatis-notification-generator/health.svg)

```
[![Health](https://phpackages.com/badges/khuloodbatis-notification-generator/health.svg)](https://phpackages.com/packages/khuloodbatis-notification-generator)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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