PHPackages                             raffaelj/cpmp-lib-skeleton - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. raffaelj/cpmp-lib-skeleton

ActiveProject[Utility &amp; Helpers](/categories/utility)

raffaelj/cpmp-lib-skeleton
==========================

Skeleton to use CpMultiplane and Cockpit CMS as libraries with a clean root directory (not compatible with Cockpit CMS v2)

0.3.0(3y ago)2211[1 issues](https://github.com/raffaelj/cpmp-lib-skeleton/issues)MITPHPPHP ^7.3

Since Oct 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/raffaelj/cpmp-lib-skeleton)[ Packagist](https://packagist.org/packages/raffaelj/cpmp-lib-skeleton)[ RSS](/packages/raffaelj-cpmp-lib-skeleton/feed)WikiDiscussions master Synced today

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

CPMP lib skeleton
=================

[](#cpmp-lib-skeleton)

**This is not compatible with Cockpit CMS v2.**

See also [Cockpit CMS v1 docs](https://v1.getcockpit.com/documentation), [Cockpit CMS v1 repo](https://github.com/agentejo/cockpit) and [Cockpit CMS v2 docs](https://getcockpit.com/documentation/), [Cockpit CMS v2 repo](https://github.com/Cockpit-HQ/Cockpit).

---

If you want to keep your docs root clean while using [CpMultiplane](https://github.com/raffaelj/CpMultiplane) with [Cockpit](https://github.com/agentejo/cockpit/), you can use this skeleton to rearrange the file structure and to include them as a library. You can use cockpit like before - with some advantages:

- Add your own favicon to the root folder.
- Add your own files to the root without messing up the cockpit installation.
- You can use your root as an own git repository.

If you look for a Cockpit skeleton without CpMultiplane, have a look at the [cockpit-lib-skeleton](https://github.com/raffaelj/cockpit-lib-skeleton), that I wrote a while ago.

Intended use
------------

[](#intended-use)

This is a skeleton to start your own project. Don't clone this repository. Just download it, modify it and than run `git init` to create a version controlled project.

Relevant files
--------------

[](#relevant-files)

Keep `index.php`, `bootstrap.php`, `defines.php` and `.htaccess.dist`. Also `data/cp/storage/data` must exist before you can run Cockpit or cli commands. You can remove the other files, if you don't need them for your workflow.

File structure
--------------

[](#file-structure)

After doing all steps described under [Installation](#installation), your file structure should look like this:

```
.
├── data
|   ├── cp
│   |   ├── addons
│   |   |   ├── CpMultiplaneGUI
│   |   |   ├── FormValidation
│   |   |   └── UniqueSlugs
│   |   ├── config
│   |   └── storage
│   |       ├── cache
│   |       ├── data
│   |       ├── thumbs
│   |       ├── tmp
│   |       └── uploads
|   └── mp
|       └── themes
│           └── my-child-theme
├── lib
│   ├── cockpit
│   ├── CpMultiplane
│   └── vendor --> if installed via composer
│   .htaccess
│   bootstrap.php
│   cp
│   defines.php
│   index.php
│   mp
│   ...

```

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

[](#installation)

### manually

[](#manually)

- Use this repository as a base or copy `index.php`, `bootstrap.php`, `defines.php`, `.htaccess.dist` and `data/` to your project folder.
- Copy `.htaccess.dist` to `.htaccess`
- Download CpMultiplane and extract it to `lib/CpMultiplane`.
- Download Cockpit and extract it to `lib/cockpit`.
- Copy `lib/cockpit/cp` to `cp` and to `mp` so the cli commands from Cockpit and from CpMultiplane work from your root directory.
- Use the cli to create an admin user `./mp account/create --user admin --password admin --email admin@example.com`
- Install addons [CpMultiplaneGUI](https://github.com/raffaelj/cockpit_CpMultiplaneGUI), [UniqueSlugs](https://github.com/raffaelj/cockpit_UniqueSlugs), [FormValidation](https://github.com/raffaelj/cockpit_FormValidation).

### via git

[](#via-git)

I expect, that you use this repo as a base or that you copy `index.php`, `bootstrap.php`, `defines.php`, `.htaccess.dist` and `data/cp/` to your project folder.

```
cd ~/html
git clone https://github.com/agentejo/cockpit.git lib/cockpit
git clone https://github.com/raffaelj/CpMultiplane.git lib/CpMultiplane
git clone https://github.com/raffaelj/cockpit_CpMultiplaneGUI.git data/cp/addons/CpMultiplaneGUI
git clone https://github.com/raffaelj/cockpit_FormValidation.git data/cp/addons/FormValidation
git clone https://github.com/raffaelj/cockpit_UniqueSlugs.git data/cp/addons/UniqueSlugs
cp .htaccess.dist .htaccess
cp lib/cockpit/cp ./cp
cp ./cp ./mp
./mp account/create --user admin --password admin --email admin@example.com
```

### via composer and docker

[](#via-composer-and-docker)

#### from a bare directory

[](#from-a-bare-directory)

```
mkdir my-project
cd my-project
# composer create-project --ignore-platform-reqs raffaelj/cpmp-lib-skeleton .
composer create-project raffaelj/cpmp-lib-skeleton .

# create default admin user
./mp account/create --user admin --password admin --email admin@example.com
```

#### from this repository

[](#from-this-repository)

This is for local development. I expect, that composer and docker are installed.

```
composer install --no-dev --ignore-platform-reqs
```

Create a `.env` file and change the user/group id to your needs.

```
docker-compose up -d
docker exec -it cpmp bash

# create default admin user
./mp account/create --user admin --password admin --email admin@example.com

# or run quickstart routine with dummy data
./mp multiplane/quickstart --template basic
./mp multiplane/create-dummy-data
```

build
-----

[](#build)

install dependencies:

`composer install` or `composer install --no-dev --ignore-platform-reqs`

update dependencies:

`composer update` or `composer update --no-dev --ignore-platform-reqs`

Credits/License
---------------

[](#creditslicense)

Some files and snippets are copied from the core Cockpit CMS, author: Artur Heinze, [www.agentejo.com](http://www.agentejo.com), MIT License

Everything else: Raffael Jesche, [www.rlj.me](http://www.rlj.me), MIT License

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.2% 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 ~379 days

Total

3

Last Release

1270d ago

### Community

Maintainers

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

---

Top Contributors

[![raffaelj](https://avatars.githubusercontent.com/u/13042193?v=4)](https://github.com/raffaelj "raffaelj (16 commits)")[![Raruto](https://avatars.githubusercontent.com/u/9614886?v=4)](https://github.com/Raruto "Raruto (3 commits)")

### Embed Badge

![Health badge](/badges/raffaelj-cpmp-lib-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/raffaelj-cpmp-lib-skeleton/health.svg)](https://phpackages.com/packages/raffaelj-cpmp-lib-skeleton)
```

###  Alternatives

[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.6k](/packages/afragen-git-updater)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[droptica/droopler-project

Project template for Droopler with Composer

5010.0k](/packages/droptica-droopler-project)[thunder/thunder-project

Project template for Thunder projects with composer

1039.4k](/packages/thunder-thunder-project)

PHPackages © 2026

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