spanjaan/wn-blogportal-plugin
Composer 安装命令:
composer require spanjaan/wn-blogportal-plugin
包简介
Extends Winter's Blog plugin with tags, archives, comments, view tracking, social sharing, and author features.
README 文档
README
A powerful Winter CMS plugin that extends Winter.Blog with comments, tags, archives, view tracking, social sharing, and author features.
Features
💬 Comments System
- Hierarchical nested comments with replies
- User authentication (Backend, Frontend, Guest)
- Comment moderation (Approve, Reject, Spam)
- Like/Dislike functionality
- Author favorites - Pin important comments
- Markdown support
- Captcha & Honeypot spam protection
- Comment modes: Open, Restricted, Private, Closed
🏷️ Tag Management
- Custom tags with slugs
- Promoted tags support
- Tag color customization
- Filter posts by tags
📅 Archive System
- Archive links by year/month
- Date-based post filtering
📊 Statistics & Analytics
- View counter & unique visitors
- Comment statistics
- Post popularity tracking
🔗 Social Sharing
- Facebook, Twitter, LinkedIn, WhatsApp
- Share count tracking
👤 Author Features
- Custom display names
- Author slug & archives
- About me section
Installation
composer require spanjaan/wn-blogportal-plugin php artisan migrate
Components
Posts Components
| Component | Description |
|---|---|
blogportalPostsByTag |
Display posts filtered by tag |
blogportalPostsByAuthor |
Display posts by author |
blogportalPostsByDate |
Display posts by date |
blogportalPostsByCommentCount |
Posts sorted by comments |
blogportalPopularPosts |
Most viewed posts |
Comments Components
| Component | Description |
|---|---|
blogportalCommentSection |
Full comments with form |
blogportalCommentList |
Comments list only |
UI Components
| Component | Description |
|---|---|
blogportalTags |
List of tags |
blogportalArchiveLinks |
Archive links |
blogportalShareButtons |
Social share buttons |
Usage Examples
Comments Section
[blogportalCommentSection]
postSlug = "{{ :slug }}"
commentsPerPage = 10
sortOrder = "created_at desc"
formPosition = "above"
==
Posts by Tag
[blogportalPostsByTag]
tagFilter = "{{ :slug }}"
postsPerPage = 10
==
Posts by Author
[blogportalPostsByAuthor]
authorFilter = "{{ :slug }}"
postsPerPage = 10
==
Posts by Date
[blogportalPostsByDate]
dateFilter = "{{ :date }}"
postsPerPage = 10
==
Popular Posts
[blogportalPopularPosts] postsPerPage = 5 ==
Tags List
[blogportalTags] hideEmpty = 1 ==
Archive Links
[blogportalArchiveLinks] archivePage = "blog/date" ==
Share Buttons
[blogportalShareButtons]
postSlug = "{{ :slug }}"
==
Settings
Access via Settings > BlogPortal in backend:
- Guest comments enable/disable
- Comment moderation options
- Like/Dislike settings
- Markdown & Captcha
- TOS requirement
- Comment modes per post
Backend Features
Menu Items
- Tags - Manage blog tags
- Comments - Manage with moderation
- Share Counts - Social statistics
Post Fields
- Comments visibility
- Comment mode (Open/Restricted/Private/Closed)
User Fields
- Display name
- Author slug
- About me
Requirements
- Winter CMS 1.2+
- Winter.Blog plugin
spanjaan/wn-blogportal-plugin 适用场景与选型建议
spanjaan/wn-blogportal-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 75 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 07 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「blog」 「comments」 「tags」 「archives」 「shares」 「winter」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 spanjaan/wn-blogportal-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 spanjaan/wn-blogportal-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 spanjaan/wn-blogportal-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Twig extension for Timber which outputs HTML comments before and after the `include` tag
A powerfull cacher based on laravels file cache driver
Phalcon PHP Meta tags service
Laravel package for opinionated blog implementation
Laravel comment system
A tool for scraping URL resources (oEmbed, OpenGraph, Twitter cards, JSON-LD)
统计信息
- 总下载量: 75
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-20