PHPackages                             ostark/craft-relax - 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. ostark/craft-relax

ActiveCraft-plugin

ostark/craft-relax
==================

Craft relax! Less database I/O

2.1.0(2y ago)1126.0k—4.2%2[3 issues](https://github.com/ostark/craft-relax/issues)[1 PRs](https://github.com/ostark/craft-relax/pulls)MITPHPPHP ^8.0

Since Jan 14Pushed 2y ago2 watchersCompare

[ Source](https://github.com/ostark/craft-relax)[ Packagist](https://packagist.org/packages/ostark/craft-relax)[ Docs](https://github.com/ostark/craft-relax)[ RSS](/packages/ostark-craft-relax/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (6)Versions (14)Used By (0)

Craft relax! Less database I/O
==============================

[](#craft-relax-less-database-io)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2cd6e7e699b1c9a124e58c3e6a1a9f3f1e33cc69eef08e423730db3a5d5aeeca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f737461726b2f63726166742d72656c61782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ostark/craft-relax)[![Total Downloads](https://camo.githubusercontent.com/f36e24304a0d19355189d22e9e00faf0ad235646bcee65351d8bfc563d420218/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f737461726b2f63726166742d72656c61782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ostark/craft-relax)[![Buy us a tree](https://camo.githubusercontent.com/130148911f548b001b2ac68a32c0a06559977ca60ada3bf480c72ae4ea093175/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e)](https://plant.treeware.earth/ostark/craft-relax)

The plugin tries to reduce write I/O on the database in multiple ways.

It prevents servers from being overwhelmed by too many queue messages, the search index becomes leaner by skipping useless terms, and deprecation notices are written in dev environments only.

In result the database is more relaxed and can handle more queries faster, which leads to faster sites.

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

[](#installation)

You can install the package via composer:

```
composer require ostark/craft-relax
php craft plugin/install relax
```

The first time plugin is installed, a config file `config/relax.php` is created. All config settings are documented in this file.

Update search index
-------------------

[](#update-search-index)

To optimize the search index you need to resave elements. Use the build-in resave commands of the `craft` cli

```
php craft resave/entries --update-search-index
php craft resave/assets --update-search-index
php craft resave/matrix-blocks --update-search-index

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Oliver Stark](https://github.com/ostark)
- [All Contributors](../../contributors)

License
-------

[](#license)

License: MIT Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

Recently: every ~205 days

Total

8

Last Release

760d ago

Major Versions

1.0.1 → 2.0.02022-05-19

PHP version history (3 changes)1.0.0-betaPHP ^7.4 | ^8.0

2.0.0PHP ^7.4||^8.0

2.1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f2939b15a562ee53b5284f58b704e53ae26b975c1154fa6afb2f8b8331fbd27?d=identicon)[ostark](/maintainers/ostark)

---

Top Contributors

[![ostark](https://avatars.githubusercontent.com/u/1941743?v=4)](https://github.com/ostark "ostark (7 commits)")

---

Tags

craft-plugincraftcmsperformancecraftcmscraft-plugincraft-relax

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ostark-craft-relax/health.svg)

```
[![Health](https://phpackages.com/badges/ostark-craft-relax/health.svg)](https://phpackages.com/packages/ostark-craft-relax)
```

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/cp-nav

Manage the Craft Control Panel navigation.

128186.9k3](/packages/verbb-cp-nav)[verbb/workflow

Enforce multi-step review processes for creating entries.

138120.3k1](/packages/verbb-workflow)

PHPackages © 2026

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