Skip to content

cockpit

Self-hosted headless CMS in PHP for serving structured content over an API

Permissive (OSI) · MIT

Listed by , founder & editor

23

Health

Dormant

Overview

Stars

5,395

Last commit

4 years ago

Jul 2022

Repository age

13 years

since Oct 2013

Latest version

–

Contributors

–

Releases

0

last 12 months

Docker pulls

1.9M

agentejo/cockpit

Language

JavaScript

Cockpit is a headless content management system. You define structured content, manage it in a web admin, and deliver it to websites or apps through a REST API. It is written in PHP with a JavaScript front end built on RiotJS.

Installation is a copy job. You put the cockpit folder in your web project, make the storage folder writable, and open the install page in a browser. It needs PHP 7.3 or later, PDO with SQLite or MongoDB, and the GD extension. On Apache, mod_rewrite must be enabled. A Docker setup for development is included, and a Docker image has been pulled many times.

Cockpit is MIT licensed and has been around since 2013. This repository is no longer the active line. Development of the next version moved to a separate Cockpit organization on GitHub, and the last commit here dates from 2022. It can stand in for hosted headless CMS services if you want to run your own.

Who it's for

PHP developers building content-driven sites

It drops into an existing PHP project and exposes content through a REST API.

Skip if: You want a project that is still actively developed in this repository.

Freelancers who need a small self-hosted backend

It runs on SQLite, so you do not need a separate database server.

Skip if: You need a large plugin ecosystem or built-in page builders.

The problem it solves

Developers need a place to manage structured content and serve it to different front ends. Hosted headless CMS products add recurring cost and lock you in, and Cockpit lets you run that backend yourself.

Strengths

  • Stores data in SQLite or MongoDB
  • Installs by copying a folder and running a browser installer
  • MIT license, with Docker support for development
  • REST API for delivering content to any front end

Trade-offs

  • This repository is dormant; the last commit was in 2022
  • Active development moved to the Cockpit-HQ organization
  • Requires PHP 7.3 or later with the GD extension
  • Rebuilding JavaScript components needs Node.js

Self-host cockpit

Self-hostable
Yes
Docker image
agentejo/cockpit

Frequently asked questions

Is Cockpit free?

Yes. It is released under the MIT license.

Can I self-host it?

Yes. Copy the folder into your web project and run the installer in a browser.

What does it need to run?

PHP 7.3 or later, PDO with SQLite or MongoDB, and the GD extension. Apache needs mod_rewrite.

Is this repository still maintained?

No. Next-version development moved to the Cockpit-HQ organization on GitHub.

Similar tools in Content management systems

Webiny

Content management systems

TypeScript headless CMS and website builder for enterprises running on AWS serverless

8.1k 683 today Thriving MIT

Replaces Contentful

Wagtail

Content management systems

Django-based CMS for Python teams that want a polished editor and optional headless API

21k 4.7k today Thriving BSD-3-Clause

KeystoneJS

Content management systems

Node.js headless CMS that turns a schema into a GraphQL API and admin UI

10k 1.3k today Thriving MIT

Decap CMS

Content management systems

Git-based content editor for static sites, added to your site's /admin path

20k 3.1k 6 days ago Thriving MIT

Halo

Content management systems

Self-hosted site builder for blogs, docs sites and small online shops

40k 10k today Thriving GPL-3.0

django-cms

Content management systems

Django-based CMS with inline editing for agencies and universities

11k 3.2k 4 days ago Thriving BSD-3-Clause