承接 m-adamski/symfony-notification-bundle 相关项目开发

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

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

m-adamski/symfony-notification-bundle

Composer 安装命令:

composer require m-adamski/symfony-notification-bundle

包简介

The Symfony Bundle was created to support simple notifications

README 文档

README

The Symfony Bundle was created to support simple notifications. Compared to previous versions, this one is based on simple methods of creating and adding notifications.

Version 5.0 doesn't have compatibility with previous versions.

Installation

Composer can install this bundle:

$ composer require m-adamski/symfony-notification-bundle

How to use it?

Compared to the previous version, to add a notification, we call the add function:

use Adamski\Symfony\NotificationBundle\Helper\NotificationHelper;
use Adamski\Symfony\NotificationBundle\Model\Notification;
use Adamski\Symfony\NotificationBundle\Model\Type;

$this->notificationHelper
    ->add(new Notification(Type::SUCCESS, "Sample notification"))
    ->add(new Notification(Type::SUCCESS, "Second sample notification"));

The custom Twig function is responsible for displaying notifications (place it somewhere in the template):

{{ notification() }}

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固