├── .github ├── FUNDING.yml ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── close-pull-request.yml ├── Facade └── Toastr.php ├── FlasherToastrServiceProvider.php ├── LICENSE ├── README.md └── composer.json /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: yoeunes 2 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Please do not submit any Pull Requests here. They will be closed. 2 | --- 3 | 4 | Please submit your PR here instead: 5 | https://github.com/php-flasher/php-flasher 6 | 7 | This repository is what we call a "subtree split": a read-only subset of that main repository. 8 | We're looking forward to your PR there! 9 | -------------------------------------------------------------------------------- /.github/workflows/close-pull-request.yml: -------------------------------------------------------------------------------- 1 | name: Close Pull Request 2 | 3 | on: 4 | pull_request_target: 5 | types: [opened] 6 | 7 | jobs: 8 | run: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: superbrothers/close-pull-request@v3 12 | with: 13 | comment: | 14 | Thanks for your Pull Request! We love contributions. 15 | 16 | However, you should instead open your PR on the main repository: 17 | https://github.com/php-flasher/php-flasher 18 | 19 | This repository is what we call a "subtree split": a read-only subset of that main repository. 20 | We're looking forward to your PR there! 21 | -------------------------------------------------------------------------------- /Facade/Toastr.php: -------------------------------------------------------------------------------- 1 | progressBar(true) 32 | * ->timeOut(5000) 33 | * ->success('Your changes have been saved'); 34 | * ``` 35 | * 36 | * @method static ToastrBuilder flash(StampInterface[] $stamps = array()) 37 | * @method static ToastrBuilder type(string $type, string $message = null, array $options = array()) 38 | * @method static ToastrBuilder message(string $message) 39 | * @method static ToastrBuilder options(array $options, bool $merge = true) 40 | * @method static ToastrBuilder option(string $name, $value) 41 | * @method static ToastrBuilder success(string $message = null, array $options = array()) 42 | * @method static ToastrBuilder error(string $message = null, array $options = array()) 43 | * @method static ToastrBuilder info(string $message = null, array $options = array()) 44 | * @method static ToastrBuilder warning(string $message = null, array $options = array()) 45 | * @method static ToastrBuilder priority(int $priority) 46 | * @method static ToastrBuilder hops(int $amount) 47 | * @method static ToastrBuilder keep() 48 | * @method static ToastrBuilder delay(int $delay) 49 | * @method static ToastrBuilder now() 50 | * @method static ToastrBuilder with(StampInterface[] $stamps = array()) 51 | * @method static ToastrBuilder withStamp(StampInterface $stamp) 52 | * @method static ToastrBuilder handler(string $handler) 53 | * @method static Envelope getEnvelope() 54 | * @method static ToastrBuilder title(string $title) 55 | * @method static ToastrBuilder closeButton(bool $closeButton = true) 56 | * @method static ToastrBuilder closeClass(string $closeClass) 57 | * @method static ToastrBuilder closeDuration(int $closeDuration) 58 | * @method static ToastrBuilder closeEasing(string $closeEasing) 59 | * @method static ToastrBuilder closeHtml(string $closeHtml) 60 | * @method static ToastrBuilder closeMethod(string $closeMethod) 61 | * @method static ToastrBuilder closeOnHover(bool $closeOnHover = true) 62 | * @method static ToastrBuilder containerId(string $containerId) 63 | * @method static ToastrBuilder debug(bool $debug = true) 64 | * @method static ToastrBuilder escapeHtml(bool $escapeHtml = true) 65 | * @method static ToastrBuilder extendedTimeOut(int $extendedTimeOut) 66 | * @method static ToastrBuilder hideDuration(int $hideDuration) 67 | * @method static ToastrBuilder hideEasing(string $hideEasing) 68 | * @method static ToastrBuilder hideMethod(string $hideMethod) 69 | * @method static ToastrBuilder iconClass(string $iconClass) 70 | * @method static ToastrBuilder messageClass(string $messageClass) 71 | * @method static ToastrBuilder newestOnTop(bool $newestOnTop = true) 72 | * @method static ToastrBuilder onHidden(string $onHidden) 73 | * @method static ToastrBuilder onShown(string $onShown) 74 | * @method static ToastrBuilder positionClass(string $positionClass) 75 | * @method static ToastrBuilder preventDuplicates(bool $preventDuplicates = true) 76 | * @method static ToastrBuilder progressBar(bool $progressBar = true) 77 | * @method static ToastrBuilder progressClass(string $progressClass) 78 | * @method static ToastrBuilder rtl(bool $rtl = true) 79 | * @method static ToastrBuilder showDuration(int $showDuration) 80 | * @method static ToastrBuilder showEasing(string $showEasing) 81 | * @method static ToastrBuilder showMethod(string $showMethod) 82 | * @method static ToastrBuilder tapToDismiss(bool $tapToDismiss = true) 83 | * @method static ToastrBuilder target(string $target) 84 | * @method static ToastrBuilder timeOut(int $timeOut, bool $extendedTimeOut = null) 85 | * @method static ToastrBuilder titleClass(string $titleClass) 86 | * @method static ToastrBuilder toastClass(string $toastClass) 87 | * @method static ToastrBuilder persistent() 88 | */ 89 | final class Toastr extends Facade 90 | { 91 | /** 92 | * Get the registered name of the component. 93 | * 94 | * Returns the service container binding key for the Toastr service. 95 | * 96 | * @return string The service container binding key 97 | */ 98 | protected static function getFacadeAccessor(): string 99 | { 100 | return 'flasher.toastr'; 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /FlasherToastrServiceProvider.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Help Palestine 4 | 5 | 6 | 7 |

8 | 9 | 10 | PHPFlasher Logo 11 | 12 |

13 | 14 | ## About PHPFlasher 15 | 16 | PHPFlasher is a powerful and easy-to-use package that allows you to quickly and easily add flash messages to your Laravel or Symfony projects. 17 | Whether you need to alert users of a successful form submission, an error, or any other important information, flash messages are a simple and effective solution for providing feedback to your users. 18 | 19 | With PHPFlasher, you can easily record and store messages within the session, making it simple to retrieve and display them on the current or next page. 20 | This improves user engagement and enhances the overall user experience on your website or application. 21 | 22 | Whether you're a beginner or an experienced developer, PHPFlasher's intuitive and straightforward design makes it easy to integrate into your projects. 23 | So, if you're looking for a reliable, flexible and easy to use flash messages solution, PHPFlasher is the perfect choice. 24 | 25 | 26 | ## Official Documentation 27 | 28 | Documentation for PHPFlasher can be found on the [https://php-flasher.io](https://php-flasher.io). 29 | 30 | ## Contributors and sponsors 31 | 32 | Join our team of contributors and make a lasting impact on our project! 33 | 34 | We are always looking for passionate individuals who want to contribute their skills and ideas. 35 | Whether you're a developer, designer, or simply have a great idea, we welcome your participation and collaboration. 36 | 37 | Shining stars of our community: 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 |
Younes ENNAJI
Younes ENNAJI

💻 📖 🚧
Salma Mourad
Salma Mourad

💵
Nashwan Abdullah
Nashwan Abdullah

💵
Arvid de Jong
Arvid de Jong

💵
Ash Allen
Ash Allen

🎨
Tony Murray
Tony Murray

💻
Stéphane P
Stéphane P

📖
Lucas Maciel
Lucas Maciel

🎨
Antoni Siek
Antoni Siek

💻
59 | 60 | 61 | 62 | 63 | 64 | 65 | ## Contact 66 | 67 | PHPFlasher is being actively developed by yoeunes. 68 | You can reach out with questions, bug reports, or feature requests on any of the following: 69 | 70 | - [Github Issues](https://github.com/php-flasher/php-flasher/issues) 71 | - [Github](https://github.com/yoeunes) 72 | - [Twitter](https://twitter.com/yoeunes) 73 | - [Linkedin](https://www.linkedin.com/in/younes--ennaji//) 74 | - [Email me directly](mailto:younes.ennaji.pro@gmail.com) 75 | 76 | ## License 77 | 78 | PHPFlasher is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). 79 | 80 |

Made with ❤️ by Younes ENNAJI

81 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-flasher/flasher-toastr-laravel", 3 | "type": "library", 4 | "license": "MIT", 5 | "homepage": "https://php-flasher.io", 6 | "description": "Leverage Toastr for stylish toast notifications in Laravel with PHPFlasher. Add Toastr's sleek notifications to your Laravel projects effortlessly.", 7 | "keywords": [ 8 | "laravel", 9 | "toastr", 10 | "flash-notifications", 11 | "dynamic-notifications", 12 | "phpflasher", 13 | "user-feedback", 14 | "open-source" 15 | ], 16 | "support": { 17 | "issues": "https://github.com/php-flasher/php-flasher/issues", 18 | "source": "https://github.com/php-flasher/php-flasher" 19 | }, 20 | "authors": [ 21 | { 22 | "name": "Younes ENNAJI", 23 | "email": "younes.ennaji.pro@gmail.com", 24 | "homepage": "https://www.linkedin.com/in/younes--ennaji/", 25 | "role": "Developer" 26 | } 27 | ], 28 | "minimum-stability": "dev", 29 | "prefer-stable": true, 30 | "require": { 31 | "php": ">=8.2", 32 | "php-flasher/flasher-laravel": "^2.1.6", 33 | "php-flasher/flasher-toastr": "^2.1.6" 34 | }, 35 | "autoload": { 36 | "psr-4": { 37 | "Flasher\\Toastr\\Laravel\\": "" 38 | } 39 | }, 40 | "config": { 41 | "preferred-install": "dist", 42 | "sort-packages": true 43 | }, 44 | "extra": { 45 | "laravel": { 46 | "providers": [ 47 | "Flasher\\Toastr\\Laravel\\FlasherToastrServiceProvider" 48 | ], 49 | "aliases": { 50 | "Toastr": "Flasher\\Toastr\\Laravel\\Facade\\Toastr" 51 | } 52 | } 53 | } 54 | } 55 | --------------------------------------------------------------------------------