PHPackages                             insomnia/cms - 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. insomnia/cms

ActiveLibrary[Admin Panels](/categories/admin)

insomnia/cms
============

v1.2.1(7y ago)0143JavaScriptPHP &gt;=5.4.0

Since Jun 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/insomnia-pt/cms)[ Packagist](https://packagist.org/packages/insomnia/cms)[ RSS](/packages/insomnia-cms/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (7)Versions (8)Used By (0)

INSOMNIA CMS
============

[](#insomnia-cms)

> NOTE: This package is for Laravel 4.2

INSTALL
-------

[](#install)

Add this to composer.json and run `composer update` :

```
{
    "require": {
        "insomnia/cms": "dev-master"
    }
}
```

Open `config/app.php` and add the following to the `providers` section:

`'Insomnia\Cms\CmsServiceProvider'`

Configure database connection, and then run the command:

```
php artisan cms:install
```

Access to `/cms` URL and login with:

username: **admin** / password: **admin**

---

PAGE TYPES EXAMPLES
-------------------

[](#page-types-examples)

### Example of a page that allow config a Datasource (require a controller in the project to get the data and pass to the view)

[](#example-of-a-page-that-allow-config-a-datasource-require-a-controller-in-the-project-to-get-the-data-and-pass-to-the-view)

Add a new record into `pages_types` table and put this JSON on `config` column:

```
{
    "areas": [

        {
            "name":"datasource",
            "field": {
                "name":"Datasource",
                "description":"",
                "datatype":2,
                "size": 8,
                "admin":1
            }
        },
        {
            "name":"view",
            "field": {
                "name":"View",
                "description":"",
                "datatype":2,
                "size": 8,
                "admin":1
            }
        },
        {
            "name":"order",
            "field": {
                "name":"Order by",
                "description":"",
                "datatype":2,
                "size": 8,
                "admin":1
            }
        }
    ]
}
```

This allow to create a controller in the laravel project and get items from database like this:

```
$items = CMS_ModelBuilder::fromTable($page->areas()->datasource)->orderBy($page->areas()->order)->paginate(6);
```

and return to the view:

```
return View::make($page->areas()->view, compact('page','items'));
```

### Example of a page with Subtitle, Text content, Image, and allow to choose the view template

[](#example-of-a-page-with-subtitle-text-content-image-and-allow-to-choose-the-view-template)

Add a new record into `pages_types` table and put this JSON on `config` column:

```
{
    "areas":[
        {
            "name":"subtitle",
            "field": {
                "name":"Sub-título",
                "description":"",
                "datatype":2,
                "size": 8,
                "multilang": 1
            }
        },
        {
            "name":"area1",
            "field": {
                "name":"Conteúdo",
                "description":"",
                "datatype":5,
                "size": 10,
                "multilang": 1
            }
        },
        {
            "name":"foto",
            "field":{
                "name":"Foto",
                "description":"",
                "datatype":"10",
                "size": 10,
                "parameters":{
                    "limit":"1",
                    "extensions":"jpeg,jpg,png"
                }
            }
        }
    ],
    "settings":[
        {
            "name":"view",
            "field": {
                "name":"View",
                "description":"",
                "datatype":8,
                "size": 10,
                "parameters":{
                    "values":"template.page_red, Page Red; template.page_blue, Page Blue"
                }
            }
        }
    ]
}
```

### Example of a page that creates a Datasource component and associates it with the page

[](#example-of-a-page-that-creates-a-datasource-component-and-associates-it-with-the-page)

Add a new record into `pages_types` table and put this JSON on `config` column:

```
```

- areas (fields listed on page edition)

    - name (field identifier - to use on frontend)
    - field (field config)
        - name (label visible in page edition)
        - description (description visible in page edition)
        - datatype (id of the field type - text / combobox / upload / ... - check `datasources_fieldtypes` table)
        - size (bootstrap col size)
        - multilang (if 1, the system allow translate the field)
        - admin (if 1, the field is only visible to admin)
        - parameters (in some cases, the field type require values to choose - like a combobox)
            - values
- settings (fields listed on right side of page edition)

    - name (field identifier - to use on frontend)
    - field (field config)
        - name (label visible in page edition)
        - description (description visible in page edition)
        - datatype (id of the field type - text / combobox / upload / ... - check `datasources_fieldtypes` table)
        - size (bootstrap col size)
        - parameters (in some cases, the field type require values to choose - like a combobox)
            - values

---

OTHER CONFIGS
-------------

[](#other-configs)

#### Show component shortcut on page edition

[](#show-component-shortcut-on-page-edition)

- In `datasource_page` table add the id of the page `page_id` and the component id `datasource_id`

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Recently: every ~138 days

Total

6

Last Release

2856d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4920b0e7e6fdc123be6f7fa1c7588963b93317173bab73cc457e3da36de7f567?d=identicon)[insomnia-pt](/maintainers/insomnia-pt)

---

Top Contributors

[![insomnia-pt](https://avatars.githubusercontent.com/u/19700436?v=4)](https://github.com/insomnia-pt "insomnia-pt (60 commits)")

### Embed Badge

![Health badge](/badges/insomnia-cms/health.svg)

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

###  Alternatives

[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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