upassist/neos-editornotifications
Composer 安装命令:
composer require upassist/neos-editornotifications
包简介
Admin-managed backend notifications for Neos CMS editors
README 文档
README
Admin-managed backend notifications for Neos CMS editors.
Features
- Admin module at
/neos/management/notificationsfor creating and managing notifications - Markdown editor with toolbar (bold, italic, lists, links, images) and live preview
- Image uploads stored as Flow persistent resources
- Scheduling with optional show-from and show-until date/time windows
- Lifecycle management — draft → published → archived, with publish/unpublish/archive actions
- Per-user read state — tracks seen, dismissed, and removed state per editor
- Content module plugin — bell icon badge with unread count, slide-out notification panel with accordion layout
- Mark all read — editors can mark all notifications as read at once
- Security — role-based access: admins manage notifications and upload images, editors can only read/dismiss
- i18n — Dutch and English translations
Requirements
- Neos CMS 8.x or 9.x
- PHP 8.1+
league/commonmark^2.0 (installed via Composer)
Installation
composer require upassist/neos-editornotifications ./flow doctrine:migrate
Configuration
The package registers itself automatically via Settings.yaml. No additional configuration needed.
- Backend module: appears under Management → Notifications
- Content module plugin: bell icon loads automatically for all editors
- Policies: Administrators get full access; Editors can view, mark as read, and dismiss
Architecture
Classes/
├── Api/Controller/NotificationApiController.php # JSON API (active, unreadCount, markSeen, markAllSeen, markUnseen, dismiss, removeForCurrentUser, uploadImage)
├── Controller/Backend/Module/
│ └── NotificationModuleController.php # Admin CRUD + publish/unpublish/archive
├── Domain/
│ ├── Model/Notification.php # Title, contentMarkdown, content (HTML), scheduling, lifecycle
│ ├── Model/NotificationReadState.php # Per-user seen/dismissed/removed tracking
│ └── Repository/ # Query builders with filter and pagination support
└── Service/NotificationService.php # Business logic, markdown rendering, read state
Resources/
├── Private/
│ ├── Fusion/Backend/ # Index (list + filters + pagination) and Form (editor + preview)
│ └── Translations/ # Dutch (nl) and English (en) XLIFF
└── Public/
├── JavaScript/Module/Module.js # Markdown editor with toolbar and image upload
├── JavaScript/NotificationPlugin/Plugin.js # Content module badge and slide-out panel
└── Styles/Module.css # Admin module dark theme styling
Notification lifecycle
| State | Condition |
|---|---|
| Draft | Created but not published (publishedAt is null) |
| Published | publishedAt set, visible to editors if within show window |
| Scheduled | Published but showFrom is in the future |
| Expired | Published but showUntil is in the past |
| Archived | archivedAt set, hidden from editors |
Active notifications cannot be deleted directly — archive them first. Drafts, archived, expired, and scheduled notifications can be deleted.
API endpoints
All API routes are prefixed with /neos/notifications/api/.
| Action | Method | Description |
|---|---|---|
active |
GET | Active notifications for current user (with read state) |
unreadCount |
GET | Number of unread notifications |
markSeen |
POST | Mark a notification as seen |
markAllSeen |
POST | Mark all active notifications as seen |
markUnseen |
POST | Mark a notification as unread |
dismiss |
POST | Dismiss (hide) a notification |
removeForCurrentUser |
POST | Permanently remove a notification for the current user |
uploadImage |
POST | Upload an image (admin, max 10 MB, JPEG/PNG/GIF/WebP) |
Security
| Role | Privileges |
|---|---|
Neos.Neos:Administrator |
Full CRUD, publish/archive, image upload, read notifications |
Neos.Neos:Editor |
Read, mark seen/unseen, mark all seen, dismiss, remove for self |
License
MIT
upassist/neos-editornotifications 适用场景与选型建议
upassist/neos-editornotifications 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 04 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「notifications」 「editor」 「backend」 「Neos」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 upassist/neos-editornotifications 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 upassist/neos-editornotifications 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 upassist/neos-editornotifications 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova package that adds a notification feed in your Nova app.
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Adds more BBCode
Integrate with Snipcart.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 30
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-01