PHPackages                             think.studio/laravel-periodic-notice - 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. think.studio/laravel-periodic-notice

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

think.studio/laravel-periodic-notice
====================================

Send your periodical series to user as batch using notifications.

1.4.0(2y ago)06MITPHPPHP ^8.1

Since Dec 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dev-think-one/laravel-periodic-notice)[ Packagist](https://packagist.org/packages/think.studio/laravel-periodic-notice)[ Docs](https://github.com/dev-think-one/laravel-periodic-notice)[ RSS](/packages/thinkstudio-laravel-periodic-notice/feed)WikiDiscussions main Synced 1mo ago

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

Laravel periodic notifications batch
====================================

[](#laravel-periodic-notifications-batch)

[![Packagist License](https://camo.githubusercontent.com/349ba6b93a55aafaed5790111cfe2b42d9b670352d72027e976d28e3014db77c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d706572696f6469632d6e6f746963653f636f6c6f723d253233346463373166)](https://camo.githubusercontent.com/349ba6b93a55aafaed5790111cfe2b42d9b670352d72027e976d28e3014db77c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d706572696f6469632d6e6f746963653f636f6c6f723d253233346463373166)[![Packagist Version](https://camo.githubusercontent.com/7239a7df76384216486caf5d3ba44aa9abc4eca0a994cc13b687c35e02dbb24c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b2e73747564696f2f6c61726176656c2d706572696f6469632d6e6f74696365)](https://packagist.org/packages/think.studio/laravel-periodic-notice)[![Total Downloads](https://camo.githubusercontent.com/575572694bdc64ed3f13038a40e9f95d79534504b309e750d51522a5d411f7e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b2e73747564696f2f6c61726176656c2d706572696f6469632d6e6f74696365)](https://packagist.org/packages/think.studio/laravel-periodic-notice)[![Build Status](https://camo.githubusercontent.com/d3d4b21b7f5b9db56c9d328962214ca95f40b2e1e36a546ebaa3ff824b729779/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d706572696f6469632d6e6f746963652f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-periodic-notice/build-status/main)[![Code Coverage](https://camo.githubusercontent.com/407fc114781ade1baf1ce87172aee6c1230fcbae062c68fce37d7d6bdb4be341/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d706572696f6469632d6e6f746963652f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-periodic-notice/?branch=main)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1d134db1df9db36da465d6a11ac0f8c4be4579bfda3ac6f61da3995d7daf3cc7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d706572696f6469632d6e6f746963652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-periodic-notice/?branch=main)

Send your periodical series to user as batch using notifications.

[![](./docs/assets/new-posts.png)](./docs/assets/new-posts.png)

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

[](#installation)

Install the package via composer:

```
composer require think.studio/laravel-periodic-notice
```

You can publish the assets file with:

```
php artisan vendor:publish --provider="PeriodicNotice\ServiceProvider" --tag="config"
php artisan vendor:publish --provider="PeriodicNotice\ServiceProvider" --tag="lang"
```

To disable default migrations add this code to app service provider:

```
\PeriodicNotice\PeriodicNoticeManager::ignoreMigrations()
```

Usage
-----

[](#usage)

```
use PeriodicNotice\Concerns\HasPeriodicNotice;
use PeriodicNotice\Contracts\NotificationReceiver;
use PeriodicNotice\PeriodicNoticeDirector;

class User extends \Illuminate\Foundation\Auth\User implements NotificationReceiver
{
    use Notifiable;
    use HasPeriodicNotice;

    public function periodicNoticeDirector(string $group = 'default'): PeriodicNoticeDirector
    {
        $dayInSeconds = 60 * 60 * 24;

        return PeriodicNoticeDirector::defaults($group)
                                     ->usePeriodType($this->periodic_notification_type)
                                     ->usePeriodTypesMap([
                                         'every_day'  => round($dayInSeconds),
                                         'every_week' => round($dayInSeconds * 7),
                                     ])
                                     ->useQueryToGetEntries(Post::class);
    }

    public function scopeWithNotificationPeriodType(Builder $query, string $type, string $group = 'default')
    {
        $query->where('periodic_notification_type', '=', $type);
    }
}
```

```
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use PeriodicNotice\Concerns\InPeriodicNotice;
use PeriodicNotice\Contracts\SendableEntity;
use PeriodicNotice\Tests\Fixtures\Factories\PostFactory;

class Post extends Model implements SendableEntity
{
    use InPeriodicNotice;

    public function scopeReleasedAfter(Builder $query, \DateTimeInterface|string $dateTime, string $group)
    {
        $query->where('published_at', '>=', $dateTime);
    }
}
```

Manual call

```
php artisan periodic-notice:send:batch every_day \\App\\Models\\User
# or use morph alias
php artisan periodic-notice:send:batch every_day user
# use custom group
php artisan periodic-notice:send:batch every_day user -G custom_group
```

More appropriate way is using cron schedule

```
$schedule->command('periodic-notice:send:batch every_day user')
          ->dailyAt('18:00');
```

Credits
-------

[](#credits)

- [![Think Studio](https://camo.githubusercontent.com/8e541bece07d503c85a126b5294865faa00e27371048772f566a0cce8c01fd3a/68747470733a2f2f7961726f736c617777772e6769746875622e696f2f696d616765732f73706f6e736f72732f7061636b616765732f6c6f676f2d7468696e6b2d73747564696f2e706e67)](https://think.studio/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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 ~142 days

Total

5

Last Release

1036d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/53f93fa87d58f33d106de6bd5e2946f8a345ebfaee146360746056cb134a15a0?d=identicon)[think.studio](/maintainers/think.studio)

---

Top Contributors

[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (10 commits)")

---

Tags

laravelnotificationseries

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/thinkstudio-laravel-periodic-notice/health.svg)

```
[![Health](https://phpackages.com/badges/thinkstudio-laravel-periodic-notice/health.svg)](https://phpackages.com/packages/thinkstudio-laravel-periodic-notice)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

toastr.js for Laravel

136649.4k5](/packages/brian2694-laravel-toastr)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)

PHPackages © 2026

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