承接 php-flasher/flasher-notyf 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

php-flasher/flasher-notyf

Composer 安装命令:

composer require php-flasher/flasher-notyf

包简介

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

Notyf adapter for PHPFlasher. Lightweight and modern toast notifications.

Requirements

  • PHP >= 8.2
  • PHPFlasher ^2.5.1

Installation

composer require php-flasher/flasher-notyf

Quick Start

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

// With options
notyf('Success message', 'success', [
    'duration' => 4000,
    'position' => [
        'x' => 'right',
        'y' => 'top',
    ],
]);

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

Features

  • Simple API: success(), error(), info(), warning(), flash()
  • Notyf Options: duration, position, ripple, id
  • Modern Design: Clean, minimal design with smooth animations
  • Type Safety: Full PHP type hints and PHPStan support
  • Helper Functions: Global notyf() helper for quick access

Available Methods

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

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

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

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

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

// With options
notyf($message, 'success', [
    'duration' => 4000,
    'position' => [
        'x' => 'right',
        'y' => 'top',
    ],
], $title);

Documentation

Complete documentation: php-flasher.io

License

MIT

统计信息

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

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固