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

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

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

php-flasher/flasher-toastr-symfony

Composer 安装命令:

composer require php-flasher/flasher-toastr-symfony

包简介

Integrate Toastr's smooth toast notifications into Symfony projects using PHPFlasher. Enhance Symfony applications with Toastr's refined visuals.

README 文档

README

Latest Version Total Downloads License

Symfony adapter for PHPFlasher Toastr. Seamlessly integrate Toastr notifications into Symfony applications.

Requirements

  • PHP >= 8.2
  • Symfony >= 7.0
  • php-flasher/flasher-symfony ^2.4.0
  • php-flasher/flasher-toastr ^2.4.0

Installation

composer require php-flasher/flasher-toastr-symfony

Quick Start

// Global helper
toastr('Your changes have been saved!');

// In controller
public function save(): RedirectResponse
{
    // Your logic...

    toastr('Operation completed successfully!');

    return $this->redirectToRoute('home');
}

// With options
toastr('Success message', [
    'timeOut' => 5000,
    'positionClass' => 'toast-top-right',
]);

Features

  • Symfony Helper: toastr() global function
  • Service Injection: ToastrFactory autowired in constructors
  • Twig Integration: Auto-injects assets in Twig templates
  • Flash Bag: Converts Symfony flash messages to Toastr notifications

Configuration

Publish configuration:

php bin/console flasher:install --config

Add to config/packages/flasher.yaml:

flasher:
    toastr:
        options:
            timeOut: 5000
            progressBar: true
            positionClass: toast-top-right

Documentation

Complete documentation: php-flasher.io

License

MIT

统计信息

  • 总下载量: 409.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 18
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固