reinvanoyen/cmf
Composer 安装命令:
composer require reinvanoyen/cmf
包简介
A flexible and extendable solution for all your content management needs
README 文档
README
Laravel CMF
Introduction
Laravel CMF is the flexible Content Management Framework for your next application. This software allows for rapid creation of your Content Management System while not being opinionated on how you build your Laravel application.
Installation
First, require the package using composer:
composer require reinvanoyen/cmf
This will automatically register the service provider in your config/app.php.
'providers' => [ ... \ReinVanOyen\Cmf\CmfServiceProvider::class, ];
Next, run the cmf:install command. This will essentially publish assets, config-files,
migrations and other needed files.
php artisan cmf:install
The install command has also published an application-specific service provider. Register it
in your config/app.php file, like so:
'providers' => [ ... App\Providers\CmfServiceProvider::class, ];
Migrate your application.
php artisan migrate
Create a user.
php artisan cmf:user
This command will ask for a name for your user, an email address and a password.
Once the user is created, you're ready to start building!
Updating
composer update reinvanoyen/cmf
php artisan cmf:install
php artisan migrate
Build a basic CRUD module
This section assumes you have already created the needed migration and model for your database entries.
Next you'll have to create a meta file. This is the file that describes how the software should interpret your entry.
The package provides an easy-to-use command to create your meta file. If you want to make a CRUD module for your "Project" model, all you have to do is run the following:
php artisan cmf:meta Project
A new meta file for this model will be created under App/Cmf/Meta. To change
this location, change the meta_namespace option in your config/cmf.php file.
Now that your meta file has been created, run the following command to generate your basic module:
php artisan cmf:module Project
A new module file will be created under App/Cmf/Modules. To change this location,
change the modules_namespace option in your config/cmf.php file.
All that's left to do, is to register your module in the application-specific service provider.
Add the module to your App\Providers\CmfServiceProvider.php, like so:
public function modules(): array { return [ new \App\Cmf\Modules\ProjectModule(), ]; }
Log in to your CMF backend panel (/admin), you should see your newly created module in the left-hand navigation panel.
reinvanoyen/cmf 适用场景与选型建议
reinvanoyen/cmf 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 27.87k 次下载、GitHub Stars 达 10, 最近一次更新时间为 2021 年 10 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「media」 「cms」 「cmf」 「content」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 reinvanoyen/cmf 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 reinvanoyen/cmf 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 reinvanoyen/cmf 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Simple Sharing generates social media share links within CP entry pages, allowing you to quickly & easily share entries.
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Laravel Media Popup to upload/view the files
统计信息
- 总下载量: 27.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-06