Download the PHP package uzinfo/ntfy-laravel without Composer
On this page you can find all versions of the php package uzinfo/ntfy-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download uzinfo/ntfy-laravel
More information about uzinfo/ntfy-laravel
Files in uzinfo/ntfy-laravel
Package ntfy-laravel
Short Description Laravel broadcaster implementation for ntfy.sh notification service
License MIT
Informations about the package ntfy-laravel
Ntfy Laravel Package
Laravel package for integrating with ntfy.sh notification service. This package provides a broadcaster implementation for Laravel Broadcasting and a notification channel for Laravel Notifications.
Features
- Laravel Broadcasting driver for ntfy
- Laravel Notification channel for ntfy
- Support for all ntfy features (priority, tags, attachments, actions, etc.)
- Multiple authentication methods (Bearer, Basic, Digest, API Key)
- Configurable SSL verification
- Rate limiting support
- Helper methods for common use cases
Installation
Install the package via Composer:
The service provider will be automatically registered.
Configuration
Environment Variables
Add the following variables to your .env
file:
Publishing Configuration
Publish the configuration files:
Usage
Broadcasting Events
Create a broadcastable event:
Dispatch the event:
Direct Ntfy Usage
Use the Ntfy class directly:
Laravel Notifications
Create a notification:
Add to your notifiable model:
Send the notification:
Authentication Methods
The package supports multiple authentication methods:
Bearer Token
Basic Authentication
Digest Authentication
API Key
No Authentication
Configuration Options
Priority Levels
- 1: Min priority
- 2: Low priority
- 3: Default priority (default)
- 4: High priority
- 5: Max/Urgent priority
Common Tags
You can use emoji shortcodes or custom strings:
warning
,alert
,fire
point_right
,tada
,package
- Custom strings like
urgent
,system
Actions
Rate Limiting
The package includes built-in rate limiting configuration:
Testing
The package includes comprehensive tests. Run them with:
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This package is open-sourced software licensed under the MIT license.
Credits
Support
If you discover any security vulnerabilities, please email [email protected] instead of using the issue tracker.
For bugs and feature requests, please use the GitHub issues.
All versions of ntfy-laravel with dependencies
illuminate/broadcasting Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.2