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 Apr 8Pushed 2mo 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 today

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

19

—

LowBetter than 9% of packages

Maintenance56

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

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://avatars.githubusercontent.com/u/50932099?v=4)[Khulood Batis](/maintainers/KhuloodBatis)[@KhuloodBatis](https://github.com/KhuloodBatis)

---

Top Contributors

[![KhuloodBatis](https://avatars.githubusercontent.com/u/50932099?v=4)](https://github.com/KhuloodBatis "KhuloodBatis (19 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

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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