PHPackages                             cnizzardini/cakephp-sakila-plugin - 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. [Database &amp; ORM](/categories/database)
4. /
5. cnizzardini/cakephp-sakila-plugin

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

cnizzardini/cakephp-sakila-plugin
=================================

A data seeder based on the MySQL Sakila database for CakePHP 4.x

v2.0.0(2y ago)2142MITPHPPHP ^8.1CI failing

Since Apr 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cnizzardini/cakephp-sakila-plugin)[ Packagist](https://packagist.org/packages/cnizzardini/cakephp-sakila-plugin)[ RSS](/packages/cnizzardini-cakephp-sakila-plugin/feed)WikiDiscussions master Synced yesterday

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

CakePHP Sakila Plugin
=====================

[](#cakephp-sakila-plugin)

[![Latest Version on Packagist](https://camo.githubusercontent.com/23ab3844c6a1010f817d9121e7f0ebe022f793a480263946a7ee4f7bf2e2e338/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636e697a7a617264696e692f63616b657068702d73616b696c612d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cnizzardini/cakephp-sakila-plugin)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.txt)[![Build Status](https://camo.githubusercontent.com/44a5269b762449425665cb3afd400b240c2de52b921d8ef4034ed8a43d2517f6/68747470733a2f2f7472617669732d63692e6f72672f636e697a7a617264696e692f63616b657068702d73616b696c612d706c7567696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/github/cnizzardini/cakephp-sakila-plugin)[![Coverage Status](https://camo.githubusercontent.com/35fa78de28050fd5fb20419f52fbfb5dd650d4ca9bdfa2917f015434253b9d66/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f636e697a7a617264696e692f63616b657068702d73616b696c612d706c7567696e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/cnizzardini/cakephp-sakila-plugin?branch=master)[![CakePHP](https://camo.githubusercontent.com/be71b0dd29f1024dc31e09a537d8633461e770d73e9deac28c2c42cce002ff37/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63616b657068702d253545352e302d7265643f6c6f676f3d63616b65706870)](https://book.cakephp.org/5/en/index.html)[![Minimum PHP Version](https://camo.githubusercontent.com/88f5af675e16072d2bae3a481dc6e9f8297bbce952642cc0fbb1e0825b36963e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d3838393242462e7376673f6c6f676f3d706870)](https://php.net/)

This Cake 4 plugin comes with a snapshot and data seeds for the [MySQL Sakila Sample Data](https://dev.mysql.com/doc/sakila/en/). I found myself needing test data when I am creating new plugins and wanted something with complex enough relations for realistic development. While the SQL dump provided by MySQL is okay, it doesn't follow full Cake conventions. This plugin includes full cake conventions and additional schema improvements.

Install
-------

[](#install)

```
composer require cnizzardini/cakephp-sakila-plugin
bin/cake plugin load Sakila
```

Alternatively after composer installing you can manually load the plugin in your Application:

```
# src/Application.php
public function bootstrap(): void
{
    // other logic...
    $this->addPlugin('Sakila');
}
```

Usage
-----

[](#usage)

Run migrate and seed with `-p Sakila`

```
bin/cake migrations migrate -p Sakila
bin/cake migrations seed -p Sakila
```

Baking
------

[](#baking)

You should now be able to bake a full application skeleton

```
bin/cake bake all --everything
```

Verify everything is working by running `bin/cake server`

Schema
------

[](#schema)

See [config/Migrations/20200422015732\_Initial.php](config/Migrations/20200422015732_Initial.php) for full schema.

Unit Tests
----------

[](#unit-tests)

Unit tests ensure the schema can be built and seeders run. It uses `cakephp/migrations` and SQLite for the data store.

```
vendor/bin/phpunit
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

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

Recently: every ~309 days

Total

9

Last Release

855d ago

Major Versions

v1.x-dev → v2.0.02024-01-08

PHP version history (2 changes)v1.0.0PHP &gt;=7.2

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/171294?v=4)[Chris Nizzardini](/maintainers/cnizzardini)[@cnizzardini](https://github.com/cnizzardini)

---

Top Contributors

[![cnizzardini](https://avatars.githubusercontent.com/u/171294?v=4)](https://github.com/cnizzardini "cnizzardini (39 commits)")

---

Tags

cakephpcakephp seedcakephp dummy datacakephp sakila

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cnizzardini-cakephp-sakila-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/cnizzardini-cakephp-sakila-plugin/health.svg)](https://phpackages.com/packages/cnizzardini-cakephp-sakila-plugin)
```

###  Alternatives

[dereuromark/cakephp-databaselog

A CakePHP plugin for storing and viewing application logs in the database

44165.0k2](/packages/dereuromark-cakephp-databaselog)[pgbi/cakephp3-soft-delete

SoftDelete plugin for CakePHP

87291.9k](/packages/pgbi-cakephp3-soft-delete)

PHPackages © 2026

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