zf-hipsters/bootstrap-flash-messenger
Composer 安装命令:
composer require zf-hipsters/bootstrap-flash-messenger
包简介
Simple implementation of ZF2 flash messengers using bootstrap. Contains easy helpers that will save you a LOT of time.
README 文档
README
A simple module that makes flash messengers as simple as they are in CakePHP. And the best part is it generates beautifully formatted Bootstrap alerts!
Installation
- Add the following requirement to your projects composer.json file.
Within the "require" section:
"zf-hipsters/bootstrap-flash-messenger": ">=1.0"
- Open up your command line and run
php ./composer.phar update
- Add 'FlashMessenger' to your /config/application.config.php modules
Controller Plugin Examples
Simple success (this is the default namespace)
$this->fm('You have been logged in.'); return $this->redirect()->toRoute('dashboard');
Error
$this->fm('Your username and/or password were incorrect.', 'error'); return $this->redirect()->toRoute('authorize/login');
Info
$this->fm('Something cool happened!', 'info'); return $this->redirect()->toRoute('home');
Warning
$this->fm('Careful! Something bad could happen!', 'warning'); return $this->redirect()->toRoute('dashboard');
View Helper Example
Default usage
<?=$this->fm()?>
Custom Namespace(s)
<?=$this->fm('exciting_namespace')?>
<?=$this->fm(array('mynamespace1', 'mynamespace2'))?>
Customising templates
Customising templates and changing the titles is super easy! Ensure that FlashMessenger is somewhere at the top of your list in application.config.php Now, copy the vendor/zf-hipsters/bootstrap-flash-messenger/view/flash-messenger folder to your eg module/application/view folder.
That's it, customise to your hearts content and they will overload the default files!
zf-hipsters/bootstrap-flash-messenger 适用场景与选型建议
zf-hipsters/bootstrap-flash-messenger 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.46k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2013 年 11 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「zf2 flash bootstrap flashmessenger」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 zf-hipsters/bootstrap-flash-messenger 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zf-hipsters/bootstrap-flash-messenger 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 zf-hipsters/bootstrap-flash-messenger 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
LosLog provides some log utility
EdpModuleLayouts is very simple Laminas module for making module-specific layouts insanely easy.
Zend Framework module to leverage the symfony dependency injection container
RCM User HTML views/pages
Builds a Bridge between Zend Expressive and Plugin Managers of Zend\MVC
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
统计信息
- 总下载量: 9.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 26
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2013-11-09