php-flasher / flasher-toastr
PHPFlasher Toastr - An extension for PHPFlasher to integrate Toastr notifications seamlessly in Laravel or Symfony. Enhances UX with elegant, responsive toast messages.
Fund package maintenance!
v2.5.0
2026-03-07 18:31 UTC
Requires
- php: >=8.2
- php-flasher/flasher: ^2.5.0
- 2.x-dev
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.6
- v2.1.5
- v2.1.4.x-dev
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- 1.x-dev
- v1.15.14
- v1.15.13
- v1.15.12
- v1.15.11
- v1.15.10
- v1.15.9
- v1.15.8
- v1.15.7
- v1.15.6
- v1.15.5
- v1.15.4
- v1.15.3
- v1.15.2
- v1.15.1
- v1.15.0
- v1.14.1
- v1.14.0
- v1.13.1
- v1.13.0
- v1.12.1
- v1.12.0
- v1.11.0
- v1.10.6
- v1.10.5
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.9.8
- v0.9.7
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.0
- v0.7.0
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.17
- v0.4.16
- v0.4.15
- v0.4.14
- v0.4.13
- v0.4.12
- v0.4.11
- v0.4.10
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.0
- v0.1.18
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-main
- dev-dependabot/add-v2-config-file
This package is auto-updated.
Last update: 2026-03-07 19:24:05 UTC
README
Toastr adapter for PHPFlasher. Elegant toast notifications with full TypeScript support.
Requirements
- PHP >= 8.2
- PHPFlasher ^2.4.0
Installation
composer require php-flasher/flasher-toastr
Quick Start
// Basic usage toastr('Operation completed successfully!', 'success'); toastr('An error occurred.', 'error'); toastr('Information message.', 'info'); toastr('Warning message.', 'warning'); // With options toastr('Success message', 'success', [ 'timeOut' => 5000, 'positionClass' => 'toast-top-right', 'progressBar' => true, ]); // Custom notification toastr('Custom message', 'custom-type');
Features
- Simple API:
success(),error(),info(),warning(),flash() - Toastr Options:
timeOut,positionClass,progressBar,closeButton,newestOnTop - Type Safety: Full PHP type hints and PHPStan support
- Helper Functions: Global
toastr()helper for quick access
Documentation
Complete documentation: php-flasher.io