php-flasher/flasher-toastr 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

php-flasher/flasher-toastr

Composer 安装命令:

composer require 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.

README 文档

README

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

统计信息

  • 总下载量: 1.38M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 25
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固