Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Flasher Toastr Laravel Package

php-flasher/flasher-toastr

Laravel adapter for Toastr notifications using PHP Flasher. Quickly flash success/error/info messages to the session and render them as Toastr popups in your views, with configurable options and seamless integration with flasherphp/flasher.

View on GitHub
Deep Wiki
Context7

PHPFlasher Toastr Adapter (Prime)

Latest Version Total Downloads License

Toastr adapter for PHPFlasher. Elegant toast notifications with full TypeScript support.

Requirements

  • PHP >= 8.2
  • PHPFlasher ^2.5.1

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

License

MIT

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport