escolalms/notifications

Escola LMS Notifications

Installs: 10 388

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:package

0.3.2 2023-06-28 13:20 UTC

README

Notifications package

swagger codecov phpunit downloads downloads downloads

What does it do

This package is used for logging and broadcasting notifications for all EscolaLms packages events.

Installation

  • composer require escolalms/notifications
  • php artisan migrate
  • php artisan db:seed --class="EscolaLms\Notifications\Database\Seeders\NotificationsPermissionsSeeder"

Usage

All events emitted by EscolaLms packages will be logged in database and can be listed through API (and Admin Panel). There is a configuration file in which you can define events which should be excluded from being stored.

Endpoints

All the endpoints are defined in swagger

Tests

Run ./vendor/bin/phpunit --filter 'EscolaLms\\Notifications\\Tests' to run tests. See tests folder as it's quite good staring point as documentation appendix.

Test details: codecov phpunit

Admin panel

Left menu

Menu

List of notifications

List of notifications

Permissions

Permissions are defined in seeder

Events

No Events are defined in this package.

Listeners

  • EscolaLms\Notifications\Listeners\NotifiableEventListener - this listener listens to all events in EscolaLms namespace

Roadmap. Todo. Troubleshooting

  • ???