PHPackages                             tareqcodex/lazy-cms-rebuild - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. tareqcodex/lazy-cms-rebuild

ActiveLibrary[Admin Panels](/categories/admin)

tareqcodex/lazy-cms-rebuild
===========================

A reusable WordPress-like admin dashboard package.

v5.12.1(1w ago)0200↓100%MITBladePHP ^8.1

Since Apr 23Pushed 1w agoCompare

[ Source](https://github.com/tareqcodex/lazy-cms-rebuild)[ Packagist](https://packagist.org/packages/tareqcodex/lazy-cms-rebuild)[ RSS](/packages/tareqcodex-lazy-cms-rebuild/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (150)Used By (0)

Lazy CMS Rebuild v5.13.0
========================

[](#lazy-cms-rebuild-v5130)

A powerful, modular, and easy-to-use CMS package for Laravel applications with built-in multi-language support, robust Role-Based Access Control (RBAC), and a WordPress-like theme &amp; hook system.

🚀 Installation
--------------

[](#-installation)

To install the package in a fresh Laravel project:

1. **Require the package via Composer:**

    ```
    composer require tareqcodex/lazy-cms-rebuild
    ```
2. **Run the Automated Installation:**

    ```
    php artisan lazy:install
    ```

    *This command handles migrations, asset publishing, theme distribution, storage linking, and default admin creation.*

---

🛠 Commands Summary
------------------

[](#-commands-summary)

Lazy CMS comes with a set of automated commands to make development easier.

CommandDescription`php artisan lazy`**Help Menu:** Lists all available Lazy CMS commands in CLI.`php artisan lazy:install`**Full Setup:** Migrations, Assets, Themes, User and seeds.`php artisan lazy:update`**Sync Update:** Refreshes assets, themes, and permissions.`php artisan lazy:seed`**Demo Data:** Seeds default menus and initial demo data.`php artisan make:lazy-page`**Scaffold:** Creates a new dashboard page, controller, and menu item.---

🔐 Role-Based Access Control (RBAC)
----------------------------------

[](#-role-based-access-control-rbac)

Version 4.0.0 introduces a granular permission system with several predefined roles:

- **Administrator**: Full access to all settings, content, and system configurations.
- **Editor**: Can publish and manage all posts and pages, access media library, and moderate comments.
- **Author**: Can publish and manage **only their own** posts.
- **Contributor**: Can write and manage their own posts but **cannot** publish them (pending review).
- **Subscriber**: Access to their own profile and basic dashboard view.
- **User**: Custom role with access to Posts, Pages, Media, Comments, and Language Tools.

> **Note:** Content ownership is strictly enforced. Authors and Contributors are isolated from other users' content.

---

🎨 Theme Development &amp; Isolation
-----------------------------------

[](#-theme-development--isolation)

### 📂 Strict Theme Structure

[](#-strict-theme-structure)

Frontend views **MUST** be located in `resources/views/themes/{theme-name}/`. For security and organization, any view file created directly in the root `resources/views/` folder will be blocked from frontend rendering (returns a 404).

### 🪄 Automated Theme Sync

[](#-automated-theme-sync)

When you update the package, your themes are automatically refreshed. To ensure this works, add the following to your `composer.json` scripts:

```
"post-autoload-dump": [
    "@php artisan vendor:publish --tag=lazy-themes --force"
]
```

---

🌐 Multi-Language Support
------------------------

[](#-multi-language-support)

Lazy CMS supports dynamic localization. You can enable or disable multi-language support from the Admin Settings.

- **Clean URLs:** When multi-language is disabled, URLs are clean (e.g., `/my-post`).
- **ISO Prefixes:** When enabled, URLs include the language code (e.g., `/en/my-post`).
- **Dynamic Admin UI:** The language selection metabox automatically hides when multi-language is disabled.

---

🛠 Features
----------

[](#-features)

- **Consolidated Migrations:** Optimized database structure.
- **Dynamic Post Types (CPT):** Create custom post types from the dashboard.
- **Advanced Hook System:** WordPress-like Action and Filter hooks.
- **Headless Mode:** Full REST API support for decoupled apps.
- **Theme Isolation:** High-security frontend view resolution.

---

⚓ Hook System Examples
----------------------

[](#-hook-system-examples)

### Adding a Filter

[](#adding-a-filter)

```
add_lazy_filter('lazy_general_settings_fields', function($fields) {
    $fields['my_custom_option'] = ['type' => 'text', 'label' => 'Custom Option'];
    return $fields;
});
```

### Adding an Action

[](#adding-an-action)

```
add_lazy_action('lazy_after_post_content', function($post) {
    echo "Related Content Here";
});
```

🧪 Testing
---------

[](#-testing)

Automated tests live in the host app under `tests/Feature/Cms/` and run on an isolated in-memory SQLite database (configured in `phpunit.xml`) — they never touch real data.

Requirements: the `pdo_sqlite` PHP extension must be enabled (`extension=pdo_sqlite` in `php.ini`).

```
# run every test
php artisan test

# run only the CMS tests
php artisan test tests/Feature/Cms

# run a single file
php artisan test tests/Feature/Cms/ScheduleStatusTest.php

# filter by test name
php artisan test --filter=future_publish_date_becomes_scheduled
```

Current coverage (the regression-prone areas):

FileGuards`BuilderShortcodeConverterTest`JSON ↔ shortcode round-trip stays lossless &amp; readable (no base64)`ScheduleStatusTest`"schedule only on a future time" status logic`PublishTimezoneTest`publish date is interpreted in the CMS timezone and stored as UTC`SchedulePublishFlowTest`due posts auto-publish; scheduled posts stay hidden until liveGreen ✓ = safe; red ⨯ = something regressed (the diff shows expected vs actual). Run the suite after changing the converter, scheduling, or save/publish code.

---

Developed by **Tareq Codex**

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance98

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

148

Last Release

10d ago

Major Versions

v1.5.1 → v2.0.02026-04-29

v2.0.2 → v3.0.02026-04-29

v3.9.6 → v4.0.02026-05-07

v4.0.8 → v5.0.02026-05-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/774dfec69a8d5b127b1df7618504fb975afe3a68a292aa2700633781f3e4ed71?d=identicon)[tareqcodex](/maintainers/tareqcodex)

---

Top Contributors

[![tareqcodex](https://avatars.githubusercontent.com/u/200030180?v=4)](https://github.com/tareqcodex "tareqcodex (39 commits)")

### Embed Badge

![Health badge](/badges/tareqcodex-lazy-cms-rebuild/health.svg)

```
[![Health](https://phpackages.com/badges/tareqcodex-lazy-cms-rebuild/health.svg)](https://phpackages.com/packages/tareqcodex-lazy-cms-rebuild)
```

###  Alternatives

[sebastienheyd/boilerplate

Laravel Boilerplate based on AdminLTE 3 with blade components, user management, roles, permissions, logs viewer, ...

29019.5k3](/packages/sebastienheyd-boilerplate)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61414.7k26](/packages/slowlyo-owl-admin)[a2insights/filament-saas

Filament Saas for A2Insights

171.5k](/packages/a2insights-filament-saas)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
