fklavyenet/webblocks-cms
Composer 安装命令:
composer require fklavyenet/webblocks-cms
包简介
A Laravel-native, block-based CMS for multisite content operations.
关键字:
README 文档
README
WebBlocks CMS is a Laravel-native, block-based CMS for multisite content operations. It adds structured pages, media, navigation, editorial workflows, and an operator admin under /webadmin to a host Laravel application.
Important
This repository is Composer package source, not a complete deployable Laravel application. Install fklavyenet/webblocks-cms into a host Laravel 13 application; the host continues to own its bootstrap, .env, database, queues, mail, deployment, backups, and public document root.
The operator dashboard brings publishing state, common actions, recent pages, and media into one package-owned admin.
What WebBlocks CMS provides
- Block-based publishing — reusable page layouts, slots, nested blocks, drafts, review, publishing, revisions, and restore.
- Multisite and localization — multiple sites, domains, locales, translated content, and site-scoped navigation and presentation.
- Media management — a shared Media Library, responsive image variants, focal-point-aware crops, metadata, folders, and usage guards.
- Reusable content — Shared Slots, navigation trees, block catalogs, and package-owned public renderers built on WebBlocks UI classes.
- Operator workflows — users and permissions, search, contact messages, engagement, backups, site transfer, cloning, and package-native updates.
- Trusted automation APIs — capability-scoped Internal Content APIs for discovery, validation, draft-first page building, media, and publishing workflows.
- Static package assets — no Node, npm, Vite, or frontend build chain is required by the CMS package.
The Pages listing combines site and status filters with publishing state, block counts, previews, and page actions.
Requirements
- PHP
^8.4 - Laravel Framework
^13.0 - Composer 2
- PHP extensions:
mbstring,sodium, andzip - A database supported by the host Laravel application
- Optional: GD for CMS image and media transformations
The supported ranges come from composer.json. CI runs the package suite, a current Laravel 13 consumer installation, a Laravel 13.0.* resolution-floor check, distribution validation, and documentation checks.
Installation
Start with a fresh or existing Laravel 13 host whose application key and database are configured. The normal host App\Models\User model must exist and be writable during initial CMS setup.
composer require fklavyenet/webblocks-cms php artisan webblocks:install \ --name="Admin User" \ --email="admin@example.com" \ --password="use-a-strong-password"
Laravel discovers WebBlocks\Cms\WebBlocksCmsServiceProvider through the package manifest. The idempotent install command:
- publishes missing CMS configuration and static assets;
- patches the host User model with CMS access behavior;
- removes only Laravel's untouched welcome route;
- installs the package-owned schema and required Laravel support tables;
- prepares storage and seeds the core CMS catalog; and
- creates the first site and super administrator.
Review Installation before using repair options or integrating with an application that already has data. For route and user-identity boundaries in an existing product, see Laravel coexistence.
Host integration
The host remains the application boundary. It owns authentication decisions outside the CMS, environment configuration, database connectivity, scheduled work, mail and queue drivers, deployment, and backups. WebBlocks CMS uses the host User identity and adds CMS membership and role authorization; host product administrators are not automatically CMS administrators.
After installation, open /webadmin. Package-owned CMS authentication uses /webadmin/login unless the host intentionally supplies an integrated authentication flow. /cms is reserved for published static assets and is not an admin prefix.
Configuration and assets
The package supports these publish tags:
php artisan vendor:publish --tag=webblocks-cms-config php artisan vendor:publish --tag=webblocks-cms-assets php artisan vendor:publish --tag=webblocks-cms-stubs
Views, translations, and migrations load from the installed package and do not have separate publish tags. Avoid --force unless you intentionally want to replace package-owned published files in a controlled host environment.
CMS static assets are published under public/cms. Site-owned overrides belong under public/site/{site_handle} in the host application. See Public assets, public themes and tones, and media image variants.
Package development
This repository is directly package-rooted. For package development:
composer install --no-interaction --prefer-dist
composer validate --strict
composer check-platform-reqs
composer format:test
composer test
Additional package checks are available as composer test:consumer, composer test:dist, composer test:docs, and composer test:floor. See CONTRIBUTING.md and the package testing strategy.
Upgrading
WebBlocks CMS 1.37.0 is the first release tagged from the package-only repository root. The package identity remains fklavyenet/webblocks-cms; the repository transition does not turn this source tree into a standalone Laravel application.
Existing full-repository clones must preserve host-owned .env, database, storage, uploads, plugins, project content, application files, and public overrides. Do not pull the package-only tree across a historical full-application checkout. Follow UPGRADING.md for Composer, legacy clone, source-maintained, and Publisher/System Updates topologies.
Documentation
- Start with Installation, Getting Started, and Core Concepts.
- Build content with Page Layouts, Block Type Contracts, Editorial Workflow, and Revisions.
- Operate sites with Multisite, Localization, Users and Permissions, Media Image Variants, and Operations.
- Integrate trusted tools through the Internal Content API, API Discovery, and AI Page Building Guide.
- Understand runtime boundaries in Package Architecture, Laravel Coexistence, Plugin System, and Updates.
Security
Do not disclose vulnerabilities in public issues. Follow SECURITY.md for private reporting and read the security guide for host hardening, authorization, token, upload, and update-integrity boundaries.
Contributing and support
Contributions are welcome through CONTRIBUTING.md and the Code of Conduct. Use the issue tracker for reproducible bugs and feature requests. SUPPORT.md explains support boundaries and the distinction between public support and private security reports.
Acknowledgements
WebBlocks CMS is designed, directed, and maintained by Osman Bozdağ.
Development has been supported with AI-assisted engineering, primarily through OpenAI ChatGPT, with limited contributions from Anthropic Claude.
License
WebBlocks CMS is open-source software licensed under the MIT License.
fklavyenet/webblocks-cms 适用场景与选型建议
fklavyenet/webblocks-cms 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 376 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「laravel」 「blocks」 「webblocks」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fklavyenet/webblocks-cms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fklavyenet/webblocks-cms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fklavyenet/webblocks-cms 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Blocks for NetCommons Plugin
A block that displays featured content - large image, title, description and link.
Flexslider slideshow content block for Silverstripe Elemental
A block to display a list of links to child pages, or pages in current level
GraphQL authentication for your headless Craft CMS applications.
Collection of useful and reusable SilverStripe Elemental stylings properties
统计信息
- 总下载量: 376
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 32
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-26

