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

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

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

php-flasher/flasher-noty

Composer 安装命令:

composer require php-flasher/flasher-noty

包简介

PHPFlasher - A powerful & easy-to-use package for adding flash messages to Laravel or Symfony projects. Provides feedback to users, improves engagement & enhances user experience. Intuitive design for beginners & experienced developers. A reliable, flexible solution.

README 文档

README

Latest Version Total Downloads License

Noty adapter for PHPFlasher. Feature-rich notification library with queue support.

Requirements

  • PHP >= 8.2
  • PHPFlasher ^2.5.1

Installation

composer require php-flasher/flasher-noty

Quick Start

// Basic usage
noty('Operation completed successfully!', 'success');
noty('An error occurred.', 'error');
noty('Information message.', 'info');
noty('Warning message.', 'warning');

// With options
noty('Success message', 'success', [
    'timeout' => 3000,
    'layout' => 'topCenter',
    'progressBar' => true,
]);

// Custom notification
noty('Custom message', 'custom-type');

Features

  • Simple API: success(), error(), info(), warning(), flash()
  • Noty Options: layout, theme, timeout, progressBar, closeWith
  • Queue Support: Named queue system for notification ordering
  • Type Safety: Full PHP type hints and PHPStan support
  • Helper Functions: Global noty() helper for quick access

Available Methods

// Success notification
noty($message, 'success', $options, $title);

// Error notification
noty($message, 'error', $options, $title);

// Info notification
noty($message, 'info', $options, $title);

// Warning notification
noty($message, 'warning', $options, $title);

// Custom notification type
noty($message, $type, $options, $title);

// With options
noty($message, 'success', [
    'layout' => 'topCenter',
    'timeout' => 3000,
    'theme' => 'mint',
], $title);

Documentation

Complete documentation: php-flasher.io

License

MIT

统计信息

  • 总下载量: 1.02M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 20
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固