PHPackages                             sjrdco/housekeeping - 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. sjrdco/housekeeping

ActiveLibrary

sjrdco/housekeeping
===================

1.0.1(10y ago)11.6kPHP

Since Sep 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Sjoerdjanssenen/Housekeeping)[ Packagist](https://packagist.org/packages/sjrdco/housekeeping)[ RSS](/packages/sjrdco-housekeeping/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

![Packagist](https://camo.githubusercontent.com/a4b7a1d8377c4252b62962b12857454a352b488c7f58770dcbcadcffaf57247b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646f637472696e652f6f726d2e737667)[![Packagist](https://camo.githubusercontent.com/22165199cc03d9be624309cfba3eeddc497f7b53ee449c9e061485658e9c6f4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f736a7264636f2f686f7573656b656570696e672e737667)](https://packagist.org/packages/sjrdco/housekeeping)

Housekeeping
------------

[](#housekeeping)

[![Housekeeping](https://camo.githubusercontent.com/156131d6a332ab12c5ccddb5477876422dd8edc3bc15cc21529230b7c2bce779/687474703a2f2f736a72642e636f2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f726f6e6465686f656b656e2e706e67)](https://camo.githubusercontent.com/156131d6a332ab12c5ccddb5477876422dd8edc3bc15cc21529230b7c2bce779/687474703a2f2f736a72642e636f2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f726f6e6465686f656b656e2e706e67)

Housekeeping is an open-source library meant to provide your PHP project with basic functionalities. This way your project can be at its safest right from the start.

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

[](#installation)

Update your `composer.json` file to include this package as a dependency

```
"sjrdco/housekeeping": "dev-master"

```

Security usage
--------------

[](#security-usage)

You can clean incoming data by calling the `cleanUp()` function.

```
$cleaned_input = Housekeeping\Security::cleanUp($input);

```

You can encrypt input by calling the `encrypt()` method. This method returns an object containing the encrypted data, an initialization vector and the encryption key:

```
$enc = Housekeeping\Security::encrypt($input);

```

You can also decrypt a string by calling the `decrypt()` method when a key an iv are available.

```
$decrypted_input = Housekeeping\Security::decrypt($enc->encrypt, $enc->key, $enc->iv);

```

Logging usage
-------------

[](#logging-usage)

You can log an action by calling the `logAction()` function. This function writes a log per entity. This means that it'll create a folder per day and this folder will contain logs for each entity.

```
Housekeeping\Logging::logAction($message, $entity);

```

License
-------

[](#license)

Housekeeping is licensed under the MIT License, please see the LICENSE file. I don't personally require attribution, but if you ever see me just buy me a coffee!

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~0 days

Total

2

Last Release

3893d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d103b58fa5c077f20acc729600dc56c5541435fdd1a4c1dae715fccd2826dc6?d=identicon)[Sjoerdjanssenen](/maintainers/Sjoerdjanssenen)

---

Top Contributors

[![Sjoerdjanssenen](https://avatars.githubusercontent.com/u/8407498?v=4)](https://github.com/Sjoerdjanssenen "Sjoerdjanssenen (5 commits)")[![jeroenboumans](https://avatars.githubusercontent.com/u/1774425?v=4)](https://github.com/jeroenboumans "jeroenboumans (3 commits)")

### Embed Badge

![Health badge](/badges/sjrdco-housekeeping/health.svg)

```
[![Health](https://phpackages.com/badges/sjrdco-housekeeping/health.svg)](https://phpackages.com/packages/sjrdco-housekeeping)
```

PHPackages © 2026

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