actcmsvn/cms
Composer 安装命令:
composer require actcmsvn/cms
包简介
The ACTCMS
README 文档
README
Installation
Require this package in your composer.json and update composer. This will download the package and CMS of ACT.
"act/cms": "dev-master"
Now, let's make our package "visible" to main Laravel structure, and assign alias to it, we do that by adding this line to main composer.json section called "psr-4":
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/",
"ACT\\CMS\\": "vendor/act/cms/src"
}
},
And then we run this command from main folder:
composer dump-autoload
Then add the following lines to the config/app.php:
'providers' => [
// ...
/*
* ACT Application Providers
*/
ACT\CMS\CMSServiceProvider::class,
// ...
],
And then, to perform actual copying, user should publish our views, with Artisan command:
php artisan vendor:publish
Adding helpers.php to main composer.json section called "files":
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/",
"ACT\\CMS\\": "vendor/act/cms/src"
},
"files": [
"helpers.php"
]
},
And run this command from main folder:
composer dump-autoload
Then add the following lines to the routes.php:
Route::group(['middleware' => ['web']], function () {
Route::group([ 'prefix' => 'admin' ], function(){
Route::any('{paths?}', "\ACT\CMS\CMSController@route")->where('paths', '([A-Za-z0-9\-\/]+)');
});
Route::get('/', function () {
echo 'Frontend template not found - <a href="admin">Backend</a>';
});
});
Finally, install database for cms with vendor\act\cms\src\db\install.sql.
Configuration
(To be continued)
actcmsvn/cms 适用场景与选型建议
actcmsvn/cms 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 12 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 actcmsvn/cms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 actcmsvn/cms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-13