asgardcms/blog-module
Composer 安装命令:
composer require asgardcms/blog-module
包简介
A blog module for AsgardCMS.
关键字:
README 文档
README
Installation
Module Download
Using AsgardCMS's module download command:
php artisan asgard:download:module asgardcms/blog --migrations
This will download the module and run its migrations .
This is the recommended way if you wish to customise the fields, views, etc.
Composer
Execute the following command in your terminal
composer require asgardcms/blog-module
This is if the contact module is perfect for your use-case as-is, and doesn't need any changes to fit your needs.
Note: After installation you'll have to give you the required permissions to get to the blog module pages in the backend.
Usage
- You have to create a
blog.indexandblog.showpage in your front end theme. - You can link to the blog index page using :
route(locale() . '.blog') - In the blog index you'll have access to a
$postsvariable on which you can loop - To create a link to a specific post:
route(locale() . '.blog.slug', [$post->slug]) - On the blog index and blog show pages you'll have access to a
$latestPostsvariable containing the latest posts, this amount can be configured in the admin. - On a post detail page, you can have access to the next and previous post by calling:
$post->present()->previous$post->present()->next
Resources
Info
All AsgardCMS modules respect Semantic Versioning.
asgardcms/blog-module 适用场景与选型建议
asgardcms/blog-module 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.29k 次下载、GitHub Stars 达 42, 最近一次更新时间为 2014 年 11 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「blog」 「journal」 「asgardcms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 asgardcms/blog-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 asgardcms/blog-module 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 asgardcms/blog-module 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A UI for Spatie's Laravel Event Sourcing
Laravel package for opinionated blog implementation
General Ledger and Journal Accounting Package for Laravel with JSON API
Advanced services for common logging operations
Import an RSS-feed into blog
Faker provider for NumberNine CMS
统计信息
- 总下载量: 11.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 43
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-28