PHPackages                             codelets-mv/notification - 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. codelets-mv/notification

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

codelets-mv/notification
========================

This is a custom notification, for keeping users notifications received in an application internally.

v1.2.2(6y ago)147MITPHP

Since Jun 13Pushed 6y agoCompare

[ Source](https://github.com/MvTechZone/mv-notification)[ Packagist](https://packagist.org/packages/codelets-mv/notification)[ RSS](/packages/codelets-mv-notification/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/2a12d272c72869d3c1532094aa236065daf583a31029b76c7bea77abe5a62b52/68747470733a2f2f6d76746563687a6f6e652e636f6d2f696d672f636f64656c6574732e706e67)](#)

[](#)

 **Makes Laravel Notification a Breeze...**
 [ ![](https://camo.githubusercontent.com/7362fd124ee42b2fa82de023e43a59e433f63163f152080b6d585e3a8bace2ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4d76546563685a6f6e652f6d762d6e6f74696669636174696f6e2e737667) ](https://github.com/MvTechZone/mv-notification/issues) [ ![](https://camo.githubusercontent.com/b71fa9d79d6c5d39e99213b3e03a3e567c09415fe310ce2c3aae1078ee6cd921/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f4d76546563685a6f6e652f6d762d6e6f74696669636174696f6e2e737667) ](https://github.com/MvTechZone/mv-notification/network/members) [ ![](https://camo.githubusercontent.com/192d7d42ae7520975307e06f6fa8eb348efb098ca4f67d62adcda9be4d0ffc68/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4d76546563685a6f6e652f6d762d6e6f74696669636174696f6e2e737667) ](https://github.com/MvTechZone/mv-notification/stargazers)

This package is custom notify for both admins and users, so instead of using laravel notification. I built this custom notification package for my projects, so if you want to try it out read through the documentation.

Installing
----------

[](#installing)

The recommended way to install codelets-mv/notification is through [Composer](http://getcomposer.org).

```
# Install package via composer
composer require codelets-mv/notification
```

Next, run the Composer command to install the latest stable version of *codelets-mv/notification*:

```
# Update package via composer
 composer require codelets-mv/notification --lock
```

After installing, the package will be auto discovered, But if need you may run:

```
# run for auto discovery
composer dump-autoload
```

Then run this, to get the *config/mv-notification.php* for configurations:

```
# run this to get the configuartion file at config/mv-notification.php
php artisan vendor:publish --provider="MV\Notification\MvNotificationService"
```

You will have to provide this in the *.env* for the api configurations:

```
# This is the pagination number you want to paginate with
MV_NOTIFICATION_PAGINATE=
```

Usage
-----

[](#usage)

Follow the steps below on how to use the package:

```
  /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct() {
        //The instance should be either this
        $this->middleware('auth:admin');//for your admin controller
        //or
        $this->middleware('auth');//for your user Controller
    }

    /**
     * ---------------------------------
     * Fetch Latest Notification Here
     * --------------------------------
     * Passing bool - true - to the function will query admin notification only
     * @return void
     */
    public function latestNotifications() {
        Mv::latestNotifications();//Fetching latest notification for user
        Mv::latestNotifications(true);//Fetching latest notification for admin
    }

    /**
     * --------------------------------
     * Fetching all notifications
     * -------------------------------
     * Passing bool - true - to the function will query admin notification only
     * @return void
     */
    public function allNotifications() {
        Mv::allNotifications();//Fetching all notifications for user
        Mv::allNotifications(true);//Fetching all notifications for admin
    }

    /**
     * =-------------------------------
     * Deleting a single notification
     * --------------------------------
     * Passing bool - true - to the function will query admin notification only
     * ------------------------------------------------------------------------------
     * To achieve single notification create a route that receives a (string) notification_id
     * Note that this package uses uuids so the notification_id has to be a string
     * ----------------------------------------------------------------------------------------
     * Passing bool - true - to the function will query admin notification only
     * -----------------------------------------------------------------------------------------------
     * @param string $notification_id
     * @return void
     */
    public function deleteSingleNotification(string $notification_id) {
        Mv::deleteSingleNotification($notification_id);//For user
        Mv::deleteSingleNotification($notification_id, true);//For admin
    }

    /**
     * =-------------------------------
     * Deleting a all notification
     * --------------------------------
     * Passing bool - true - to the function will query admin notification only
     * ------------------------------------------------------------------------------
     * Passing bool - true - to the function will query admin notification only
     * ----------------------------------------------------------------------------------
     * @return void
     */
    public function deleteAllNotifications() {
        Mv::deleteAllNotifications();//For user
        Mv::deleteAllNotifications(true);//For admin
    }

    /**
     * --------------------------------
     * Creating new notification here
     * --------------------------------
     * In creating notification we need 4 parameters of which 2 are optional that is for user_id and admin_id
     * -------------------------------------------------------------------------------------------------------
     * Also you can have your function that receives the parameters and passes them to Mv::createSystemNotification
     * --------------------------------------------------------------------------------------------------------------
     * @return void
     */
    public function createSystemNotification() {
        //This is for creating user notifications
        Mv::createSystemNotification(null, auth()->id(), 'My Notification Subject', 'My Notification Message');

        //This is for creating admin notifications
        Mv::createSystemNotification(auth('admin')->id(), null, 'My Notification Subject', 'My Notification Message');
    }

    /**
     * ---------------------------
     * TODO SIMPLE PACKAGE NOTES
     * -----------------------------------------------------------------------------------------
     * For the functions used above can be changed to your own names to call the package names
     * -----------------------------------------------------------------------------------------
     */
```

Version Guidance
----------------

[](#version-guidance)

VersionStatusPackagistNamespaceRepo1.xLatest`codelets-mv/notification``MV\Notification`[v1.0.0](https://github.com/MvTechZone/mv-notification/tree/1.0)Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

For any security vulnerabilities, please email to [MvTechZone](mailto:info@mvtechzone.com).

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

4

Last Release

2527d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92aac28c9c152c4dcdac0f9b31c752ee28fe75dec3310a97ac66755805c33770?d=identicon)[MvTechZone](/maintainers/MvTechZone)

---

Top Contributors

[![general-oisebe](https://avatars.githubusercontent.com/u/154009443?v=4)](https://github.com/general-oisebe "general-oisebe (17 commits)")

---

Tags

laravellaravel-notificationslaravel-package

### Embed Badge

![Health badge](/badges/codelets-mv-notification/health.svg)

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

###  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.3M227](/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)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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