mosweed/mosweed_cms
Composer 安装命令:
composer require mosweed/mosweed_cms
包简介
A nice block based editor made with Laravel Livewire.
README 文档
README
Introduction
In this document you will find an explanation on how to use the Mosweed CMS starter kit.
Requirements
To use this package, you'll need:
-
Laravel framework 11
-
To use with Livewire v3
-
PHP 8.2 or higher
When installing this package, the following packages will be installed:
-
Mollie / mollie-api-php
-
Spatie/laravel-medialibary
-
Barryvdh/laravel-dompdf : *2.1.0
Installation
You can install the package via composer:
composer require Mosweed/Mosweed_cms Php artisan Mosweed_cms:install
Installation Process:
- First, the required packages will be installed.
- All necessary files will be published.
- You will be prompted with the following questions:
- Do you want to install Jetstream Livewire dark?
You can answer with YES or NO, but we recommend installing it. - New database migrations were added. Would you like to re-run your migrations and seeders?
It is best to answer YES if you want to set up an admin or SMTP configuration. - Create a new admin:
php artisan create:admin
This will create an admin role, allowing you to manage the CMS. - Create a new SMTP setting:
php artisan smtp:setting
This will generate a new configuration, responsible for sending emails, and can also be managed in the CMS.
- Do you want to install Jetstream Livewire dark?
After these commands, the following will be automatically installed:
npm installnpm run devphp artisan storage:link
All old migrations, the User Model, errors folder in the view, and providers in the app will be removed.
Block Editor Elements:
To create a block, use the following command:
php artisan dropblockeditor:make {name}
Like
php artisan dropblockeditor:make Text
After make, you can specify a name for the element.
Two files will be created:
App/view/components/blocks/{name}Resources/views/components/blocks/{name}
In the first file, you'll find variables:
- Title: This is the block name.
- Icon: The SVG icon with dimensions
0 0 24 24. - Category: The category under which this block will be listed.
- Data: This contains an array of data related to the element.
In the second file, the data will be displayed and processed. When a field is changed, the UPDATE function will be triggered.
Migrations
-
users
-
products
-
shopcarts
-
shipping_methods
-
payments_methods
-
customers
-
order_items
-
orders
-
addresses
-
pages
-
roles
-
coupons
-
categories
-
emailconfiguraties
-
orders_emails
-
api_configrations
Model
-
Name: pages
-
Data: [title, slug, status, content]
-
The Route key is a slug
Credits
- Mohmad Yazan Sweed
- Hamzah Sari
License
The MIT License (MIT). Please see License File for more information.
mosweed/mosweed_cms 适用场景与选型建议
mosweed/mosweed_cms 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 09 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「editor」 「block」 「auth」 「laravel」 「livewire」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mosweed/mosweed_cms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mosweed/mosweed_cms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mosweed/mosweed_cms 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Block routes by IP
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
See how Matrix and Neo blocks are being used across your sections.
Supercharged text field validation.
Prevent crawlers from creating a session
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-06