carbon/notification
Composer 安装命令:
composer require carbon/notification
包简介
This package provides a tiny fusion helper for notifications.
README 文档
README
Carbon.Notification Package for Neos CMS
This package provides a tiny fusion helper for notifications:
Besides these four types, there is also the type backend, which on a document,
which is in the colors of the Neos Backend, is ideal for a notification.

Carbon.Notification:Tag
Adds a notification. type can be alert, warning (default), info, success or
backend. You need to set content to get the notification showing. If you want to
add/change a style, you can pass a key/value pair to it. For example, you want to
alter the padding and want to change the font-weight to bold you can enter:
notification = Carbon.Notification:Tag { padding = '12px' font-weight = 'bold' content = 'Here comes your content' }
With the lang attribute you can set an alternative language. Useful if your interface
and website languages differ from each other.
Carbon.Notification:Backend
A variant from Carbon.Notification:Tag.
This notification gets only shown in the backend. Great for NodeTypes, who need
input in the inspector. It has the same capabilities as Carbon.Notification:Tag,
it is just extended with @if.inBackend = ${node.context.inBackend}
Carbon.Notification:Data
Add a notification to the backend view. You need to set content to get the
notification showing. This is great for NodeTypes, who need input in the inspector.
Add this prototype to data-carbon-alert, data-carbon-warning,
data-carbon-info or data-carbon-backend to an element as attribute.
You can also pass directly data-carbon-* to an element. If the HTML element has no content,
the message is shown, otherwise, it will be hidden. This is done with the CSS selector :not(:emtpy)
A use-case for this if you want to show a notification if a content collection is empty.
Carbon.Notification:Document
This sourounds Carbon.Notification:Tag with the needed HTML Markup for a document.
Customization
Every notification load the default styles from the settings Carbon.Notification.default. If you
want to change some values or add new ones, you can edit them in your Settings.yaml.
Per default, there are five types of notification configured. If you want to add your own types,
you can extend the setting Carbon.Notification.types with your own entries.
For further details, please take a look at the file Settings.Carbon.yaml
Installation
Most of the time you have to make small adjustments to a package (e.g.
configuration in Settings.yaml). Because of that, it is important to add the
corresponding package to the composer from your theme package. Mostly this is
the site package located under Packages/Sites/. To install it correctly go to
your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:
composer require carbon/notification --no-update
The --no-update command prevent the automatic update of the dependencies.
After the package was added to your theme composer.json, go back to the root
of the Neos installation and run composer update. Et voilà! Your desired
package is now installed correctly.
carbon/notification 适用场景与选型建议
carbon/notification 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 212.81k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2017 年 10 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「flow」 「helper」 「Neos」 「carbon」 「FUSION」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 carbon/notification 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 carbon/notification 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 carbon/notification 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An improved history backend module for Neos
Put images nicley in a row
Datetime helpers for timezone handling
Create link to static resources with cache-breaking segment based on md5 of the file
Library with classes to help you do batch.
This adds functions about array. If you feel like there few php built-in functions about array, this will be useful.
统计信息
- 总下载量: 212.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 24
- 依赖项目数: 18
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2017-10-21



