PHPackages                             mateuszbieniek/ezplatform-database-health-checker - 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. mateuszbieniek/ezplatform-database-health-checker

ActiveEzplatform-bundle[Database &amp; ORM](/categories/database)

mateuszbieniek/ezplatform-database-health-checker
=================================================

Allows to check the project's database against most common issues

v1.2.2(4y ago)411.0k3MITPHPPHP &gt;=7.1CI failing

Since Feb 5Pushed 3y ago2 watchersCompare

[ Source](https://github.com/mateuszbieniek/ezplatform-database-health-checker)[ Packagist](https://packagist.org/packages/mateuszbieniek/ezplatform-database-health-checker)[ RSS](/packages/mateuszbieniek-ezplatform-database-health-checker/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

Description
-----------

[](#description)

This bundle allows you to check your database against know database corruption and fix them. Also, you can perform a Smoke Test on your project to determine if all Contents are accessible (ignoring permissions). The additional functionality is cleaning up your database from leftovers left by `ezplatform-page-fieldtype` bundle.

### Supported database corruptions:

[](#supported-database-corruptions)

- Content without version (fixed by removing corrupted content)
- Content without attributes (fixed by removing corrupted content)
- Content with duplicated attributes (fixed by removing duplicated attributes)
- Page FieldType related records which are unnecessary and cause flooding

Usage
-----

[](#usage)

The following bundle introduces two commands: `ezplatform:database-health-check` and `ezplatform:page-fieldtype-cleanup`.

*Fixing corruptions will modify your database! Always perform the database backup before running those commands!*

After running those commands it is recommended to [regenerate URL aliases](https://doc.ezplatform.com/en/2.5/guide/url_management/#regenerating-url-aliases), clear persistence cache and [reindex](https://doc.ezplatform.com/en/2.5/guide/search/#reindexing).

### ezplatform:database-health-check

[](#ezplatformdatabase-health-check)

Bundle adds `db-checker` SiteAccess with `cache_pool` set to [NullAdapter](https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Cache/Adapter/NullAdapter.php)so no SPI cache is used when retrieving Content from the database during Smoke Test. If corruption is found, you will be asked if you want to fix it.

All Content's location will be checked for subitems, before removing it. In the case of existing subitems, you will be presented with an option to swap location with a different one, so subitems are preserved (Content won't be deleted after swap so script has to be re-run if you wish to delete corrupted Content).

```
php -d memory_limit=-1 bin/console ezplatform:database-health-check --siteaccess=db-checker

```

Please note that Command may run for a long time (depending on project size). You can speed it up by skipping Smoke Testing with `--skip-smoke-test` option.

### ezplatform:page-fieldtype-cleanup

[](#ezplatformpage-fieldtype-cleanup)

*Warning! This command is only available for Enterprise versions of the platform.*

This command searches your database for `ezpage_*` records which are leftovers from and deletes them if necessary to prevent uncontrolled growth of the database.

```
php -d memory_limit=-1 bin/console ezplatform:page-fieldtype-cleanup

```

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

[](#installation)

### Requirements

[](#requirements)

This bundle requires eZ Platform 2.5+

### 1. Enable `EzPlatformDatabaseHealthCheckerBundle`

[](#1-enable-ezplatformdatabasehealthcheckerbundle)

Edit `app/AppKernel.php`, and add

```
$bundles[] = new MateuszBieniek\EzPlatformDatabaseHealthCheckerBundle\EzPlatformDatabaseHealthCheckerBundle();

```

at the end of list of bundles in `dev` environment.

### 2. Install `mateuszbieniek/ezplatform-database-health-checker`

[](#2-install-mateuszbieniekezplatform-database-health-checker)

```
composer require mateuszbieniek/ezplatform-database-health-checker

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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 ~119 days

Recently: every ~102 days

Total

7

Last Release

1626d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f650eead4bac570d6b1f827c7cb5f6814e92ff584490a3be9d4576853fb4b473?d=identicon)[mateusz.bieniek@ez.no](/maintainers/mateusz.bieniek@ez.no)

---

Top Contributors

[![mateuszbieniek](https://avatars.githubusercontent.com/u/38975612?v=4)](https://github.com/mateuszbieniek "mateuszbieniek (14 commits)")[![barw4](https://avatars.githubusercontent.com/u/22300504?v=4)](https://github.com/barw4 "barw4 (9 commits)")[![mateuszdebinski](https://avatars.githubusercontent.com/u/58430570?v=4)](https://github.com/mateuszdebinski "mateuszdebinski (1 commits)")

---

Tags

ezplatformezplatform-bundle

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mateuszbieniek-ezplatform-database-health-checker/health.svg)

```
[![Health](https://phpackages.com/badges/mateuszbieniek-ezplatform-database-health-checker/health.svg)](https://phpackages.com/packages/mateuszbieniek-ezplatform-database-health-checker)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[kaliop/ezmigrationbundle

Kaliop eZ-Migration Bundle

54358.8k9](/packages/kaliop-ezmigrationbundle)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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