atm/boardbundle
Composer 安装命令:
composer require atm/boardbundle
包简介
Board bundle
关键字:
README 文档
README
Install through composer:
php -d memory_limit=-1 composer.phar require atm/boardbundle
In your AppKernel
public function registerbundles()
{
return [
...
...
new ATM\BoardBundle\ATMBoardBundle(),
];
}
Configuration sample
# app/config/config.yml
atm_board:
media_folder: Media folder.
user: Your user namespace.
image_width: width of the post image.
image_height: height of the post image.
watermark_image_small: small watermark path.
watermark_image_medium: medium watermark path.
watermark_image_big: big watermark path.
encoder_api_key: encoder api key from qencode.
encoder_profile_id: encoder profile id from qencode.
encoder_transfer_method_id: encoder profile id from qencode.
not_access_redirect_route: Redirect route when a user has no access to the board.
after_request_access_redirect_route: Redirect route after a request has sent to a user.
added_to_acl_redirect_route: Redirect route after a user is added to the acl.
removed_to_acl_redirect_route: Redirect route after a user is removed to the acl.
Routing
Append to the main routing file:
# app/config/routing.yml
atm_board:
resource: "@ATMBoardBundle/Controller/BoardController.php"
type: annotation
prefix: /
atm_board_admin:
resource: "@ATMBoardBundle/Controller/AdminController.php"
type: annotation
prefix: /
Usage
First create a board using the following route:
{{ path('atm_board_create')
Once your board is created you can add post images, videos and texts. For videos you will need to start the rabbitMQ queue in your console:
- atm_board_encode_video:execute
The ACL
The board system also allows to give access to users that the owner of the board wants. First of all the user that wants access to your board has to send you a request using this route:
{{ path('atm_board_request_access') }}
The action of this route will throw the following event:
atm_board_request_access.event
In that event you can customize the way that the owner of the board will get the link to add the user that wants to check the board. That's the route for adding a user to a board's acl:
{{ path('atm_board_add_user_acl',{ 'boardId':board.id, 'userId':user.id }) }}
After adding the user to the board's acl the following event is thrown, with the board id and the user id added to the board acl as parameters:
atm_board_added_acl.event
If the owner of the board wants to remove a user from it's board that's the route to do that:
{{ path('atm_board_remove_user_acl',{ 'boardId':board.id, 'userId':user.id }) }}
This action throws the following event with the board id and the user id removed from the board acl as parameters
atm_board_deleted_acl.event
The Admin
The bundle has it's own admin panel to see all the users with a link to their boards, that's the route to the admin panel:
{{ path('atm_board_admin_index')
atm/boardbundle 适用场景与选型建议
atm/boardbundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 217 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 06 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「atm board bundle」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 atm/boardbundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 atm/boardbundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 atm/boardbundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova package that adds a notification feed in your Nova app.
2lenet/EasyAdminPlusBundle
The bundle for easy using json-rpc api on your project
Provide a way to secure accesses to all routes of an symfony application.
DMS Meetup API Bundle, enables Meetup API clients in services
IPBoard API integration with Laravel
统计信息
- 总下载量: 217
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-29