PHPackages                             fbollon/lara-cms-lite - 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. fbollon/lara-cms-lite

ActiveLibrary

fbollon/lara-cms-lite
=====================

Content management system lite for Laravel app

0.3.5(5mo ago)151↓100%MITBladePHP ^7.1|^8.0|^8.1|^8.2CI failing

Since May 6Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/fbollon/lara-cms-lite)[ Packagist](https://packagist.org/packages/fbollon/lara-cms-lite)[ Docs](https://github.com/fbollon/lara-cms-lite)[ RSS](/packages/fbollon-lara-cms-lite/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (18)Used By (0)

Lightweight content manager package for Laravel applications
============================================================

[](#lightweight-content-manager-package-for-laravel-applications)

[![Latest Version on Packagist](https://camo.githubusercontent.com/77ff72ba26e35115775fe35fe3f6fd421e495175dd900742acdbdc83e1c130c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66626f6c6c6f6e2f6c6172612d636d732d6c6974652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fbollon/lara-cms-lite)[![Build Status](https://camo.githubusercontent.com/149a2ac228420caab500bf3a39640035bff304f83b877534b5a05f737dc10644/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f66626f6c6c6f6e2f6c6172612d636d732d6c6974652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/fbollon/lara-cms-lite)[![Quality Score](https://camo.githubusercontent.com/9c863ece44a518e281ac41c66a1c3790543af34aa636c199f2319c68f4869299/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f66626f6c6c6f6e2f6c6172612d636d732d6c6974652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fbollon/lara-cms-lite)[![Total Downloads](https://camo.githubusercontent.com/8f7ba38cdf8d16c198e9dae0286f9f3217c75336c5c596349fc036ee92d6a98b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66626f6c6c6f6e2f6c6172612d636d732d6c6974652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fbollon/lara-cms-lite)

Lara-cms-lite was created to allow some users to add and manage content on predefined business application pages in intranet, this avoids having to modify the application source code to change a text on a home page or other. We could also use this package to add a news-style page or blog to existing application.

Installation
------------

[](#installation)

Laravel from `6.x` to `12.x` are supported.

You can install the package via composer:

```
composer require fbollon/lara-cms-lite
```

Publish assets, config and views

- tinymce to public/vendor/tinymce
- lara-cms-lite config file and adjust values if needed in config/lara-cms-lite.php based on comments
- lara-cms-lite views to views/vendor/lara-cms-lite

```
php artisan vendor:publish --provider="Fbollon\LaraCmsLite\LaraCmsLiteServiceProvider"
```

Or publish by tags

```
php artisan vendor:publish --provider="Fbollon\LaraCmsLite\LaraCmsLiteServiceProvider" --tag=public

php artisan vendor:publish --provider="Fbollon\LaraCmsLite\LaraCmsLiteServiceProvider" --tag=config

php artisan vendor:publish --provider="Fbollon\LaraCmsLite\LaraCmsLiteServiceProvider" --tag=views
```

> To force publishing add `--force` flag.

Create required tables

```
php artisan migrate
```

A table named 'contents' will be created, if a table with the same name already exists in your app change value of 'table' in config/lara-cms-lite.php

Authorization
-------------

[](#authorization)

Add 1 method canManageLaraCmsLiteContent() to your \\App\\User file with your own logic

Define a gate in your App\\Providers\\AuthServiceProvider

```
    /**
     * Register any authentication / authorization services.
     *
     * @return void
     */
    public function boot()
    {
        $this->registerPolicies();

        Gate::define('lara-cms-lite-manage', function ($user) {
            return $user->canManageLaraCmsLiteContent();
        });

    }
```

Usage
-----

[](#usage)

Visit your application url :  to start creating and managing content .

To display content in existing views of your application

In you default layout add this where you want to display content in your layout

```
@if (!empty($contents) && count($contents))
@include('lara-cms-lite::layouts.partials.contents')
@endif
```

Depending where you allow users to add content in yours methods controller add

```
// import model
use Fbollon\LaraCmsLite\Models\Content;
```

```
// for each method you allow to display content
public function xxx()
{
    // get content
    $contents = Content::getContextualContent();

    // and send content to the view
    return view('xxx.xxx', compact('contents'));
}
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

Credits
-------

[](#credits)

- [Frédéric Bollon](https://github.com/fbollon)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance74

Regular maintenance activity

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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 ~144 days

Recently: every ~354 days

Total

15

Last Release

178d ago

PHP version history (3 changes)0.1.0PHP ^7.1

0.3.2PHP ^7.1|^8.0

0.3.4PHP ^7.1|^8.0|^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/bca1357e6967cdc54c1ac9d7c39594ae97cff6538b433878826625324edc3984?d=identicon)[fbollon](/maintainers/fbollon)

---

Top Contributors

[![fbollon](https://avatars.githubusercontent.com/u/48405363?v=4)](https://github.com/fbollon "fbollon (18 commits)")

---

Tags

fbollonlara-cms-lite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fbollon-lara-cms-lite/health.svg)

```
[![Health](https://phpackages.com/badges/fbollon-lara-cms-lite/health.svg)](https://phpackages.com/packages/fbollon-lara-cms-lite)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)

PHPackages © 2026

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