PHPackages                             pauloamgomes/cockpitcms-autosave - 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. [API Development](/categories/api)
4. /
5. pauloamgomes/cockpitcms-autosave

AbandonedArchivedCockpit-module[API Development](/categories/api)

pauloamgomes/cockpitcms-autosave
================================

Autosave addon for Cockpit CMS, provides autosave capabilities for collections and singletons

1.0.0(5y ago)131[1 issues](https://github.com/pauloamgomes/CockpitCMS-Autosave/issues)MITPHPPHP &gt;= 7.3

Since Mar 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pauloamgomes/CockpitCMS-Autosave)[ Packagist](https://packagist.org/packages/pauloamgomes/cockpitcms-autosave)[ Docs](https://github.com/pauloamgomes/CockpitCMS-Autosave)[ RSS](/packages/pauloamgomes-cockpitcms-autosave/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Autosave add-on for Cockpit CMS
===============================

[](#autosave-add-on-for-cockpit-cms)

This add-on enhances Cockpit CMS by providing the ability to persist automatically changes on collection entries or singletons form data. That means if the user closes by mistake the browser (by mistake or by a system failure) the changes will not be lost and when someone tries to edit the same resource, the system will ask if he wants to continue from a previous saved version.

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

[](#installation)

### Manual

[](#manual)

Download [latest release](https://github.com/pauloamgomes/CockpitCMS-Autosave) and extract to `COCKPIT_PATH/addons/Autosave` directory

### Git

[](#git)

```
git clone https://github.com/pauloamgomes/CockpitCMS-Autosave.git ./addons/Autosave
```

### Cockpit CLI

[](#cockpit-cli)

```
php ./cp install/addon --name Autosave --url https://github.com/pauloamgomes/CockpitCMS-Autosave.git
```

### Composer

[](#composer)

1. Make sure path to cockpit addons is defined in your projects' *composer.json* file:

```
{
    "name": "MY_PROJECT",
    "extra": {
        "installer-paths": {
            "cockpit/addons/{$name}": ["type:cockpit-module"]
        }
    }
}
```

2. In your project root run:

```
composer require pauloamgomes/cockpitcms-autosave
```

---

Configuration
-------------

[](#configuration)

In order to use the addon, it's required to specifiy in the Cockpit config the collections and/or singletons we want to autosave, e.g.:

```
autosave:
  collections: *
  singletons:
    - settings
    - seo
```

In the above example we are saying to apply Autosave to all collections (use of \*) and to specifically the singletons with name "settings" and "seo".

For non admin users its required to provide a permission ("access"), e.g.:

```
groups:
  editor:
    autosave:
      access: true
```

Usage
-----

[](#usage)

When enabled, the addon will provide a small sidebar block that will display status of autosaves user did:

[![Autosave Screencast](https://camo.githubusercontent.com/17622e1eca1b147d0966ae6091f6bcb0cef4a1726ec3e014e084184e59c8bead/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f4e43476f624d72734c4a6e494a715636616f47646a49505a775958416633)](https://camo.githubusercontent.com/17622e1eca1b147d0966ae6091f6bcb0cef4a1726ec3e014e084184e59c8bead/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f4e43476f624d72734c4a6e494a715636616f47646a49505a775958416633)

When using Autosave, only a version is stored in the database containing the latest changes user did in the resource. When user saves the resource, the autosave entry is automatically removed.

Copyright and license
---------------------

[](#copyright-and-license)

Copyright 2019 pauloamgomes under the MIT license.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

1929d ago

### Community

Maintainers

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

---

Top Contributors

[![pauloamgomes](https://avatars.githubusercontent.com/u/102261?v=4)](https://github.com/pauloamgomes "pauloamgomes (1 commits)")[![Raruto](https://avatars.githubusercontent.com/u/9614886?v=4)](https://github.com/Raruto "Raruto (1 commits)")

---

Tags

cockpit-cmscockpit-cms-addoncockpit-cms-autosavecockpitcmsapicockpitcmsheadlessautosave-addon

### Embed Badge

![Health badge](/badges/pauloamgomes-cockpitcms-autosave/health.svg)

```
[![Health](https://phpackages.com/badges/pauloamgomes-cockpitcms-autosave/health.svg)](https://phpackages.com/packages/pauloamgomes-cockpitcms-autosave)
```

###  Alternatives

[aheinze/cockpit

Cockpit Headless CMS

5.4k2.0k4](/packages/aheinze-cockpit)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[october/rain

October Rain Library

1601.7M83](/packages/october-rain)[getkirby/kql

Kirby Query Language

15027.0k](/packages/getkirby-kql)[aimeos/aimeos-headless

Aimeos headless ecommerce system

2.5k2.3k](/packages/aimeos-aimeos-headless)

PHPackages © 2026

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