PHPackages                             reagordi/contracts-serializable-closure - 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. [Framework](/categories/framework)
4. /
5. reagordi/contracts-serializable-closure

ActiveLibrary[Framework](/categories/framework)

reagordi/contracts-serializable-closure
=======================================

Designed to work with objects

1.0.0(2y ago)012[1 PRs](https://github.com/reagordi/contracts-serializable-closure/pulls)1BSD-3-ClausePHPPHP ^8.2

Since May 1Pushed 1y agoCompare

[ Source](https://github.com/reagordi/contracts-serializable-closure)[ Packagist](https://packagist.org/packages/reagordi/contracts-serializable-closure)[ Docs](https://reagordi.com/)[ GitHub Sponsors](https://github.com/sponsors/reagordi)[ OpenCollective](https://opencollective.com/reagordi)[ RSS](/packages/reagordi-contracts-serializable-closure/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (3)Used By (1)

 [ ![Reagordi](https://raw.githubusercontent.com/reagordi/docs/main/images/logo.png) ](https://github.com/reagordi)

Reagordi Contracts Serializable Closure
=======================================

[](#reagordi-contracts-serializable-closure)

[![Latest Stable Version](https://camo.githubusercontent.com/7bfaeb771a9e475ac6e42eca822ab21eb5c1a39c4b9e275d70b0a12dbbf0d9f9/68747470733a2f2f706f7365722e707567782e6f72672f726561676f7264692f636f6e7472616374732d73657269616c697a61626c652d636c6f737572652f762f737461626c652e706e67)](https://packagist.org/packages/reagordi/contracts-serializable-closure)[![Total Downloads](https://camo.githubusercontent.com/58caf16720bc1ee3c4f4872a10ab2123f0d1afd9e79d37a3d8f173d11853707b/68747470733a2f2f706f7365722e707567782e6f72672f726561676f7264692f636f6e7472616374732d73657269616c697a61626c652d636c6f737572652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/reagordi/contracts-serializable-closure)[![Build status](https://github.com/reagordi/contracts-serializable-closure/workflows/build/badge.svg)](https://github.com/reagordi/contracts-serializable-closure/actions?query=workflow%3Abuild)[![Code Coverage](https://camo.githubusercontent.com/3d80e4aaa8232702f243396a7f0d771f5e37979a1031cc01e31f37204f988db5/68747470733a2f2f636f6465636f762e696f2f67682f726561676f7264692f636f6e7472616374732d73657269616c697a61626c652d636c6f737572652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/reagordi/contracts-serializable-closure)

[![Mutation testing badge](https://camo.githubusercontent.com/45c562f55a0979750485d30d70f0260d38c182b4bb822fde410b8764d6634a8b/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246726561676f726469253246636f6e7472616374732d73657269616c697a61626c652d636c6f737572652532466d61696e)](https://dashboard.stryker-mutator.io/reports/github.com/reagordi/contracts-serializable-closure/main)

[![static analysis](https://github.com/reagordi/contracts-serializable-closure/workflows/static%20analysis/badge.svg)](https://github.com/reagordi/contracts-serializable-closure/actions?query=workflow%3A%22static+analysis%22)[![type-coverage](https://camo.githubusercontent.com/4ac95dd9eb872f6cac089bb7e44a49e45778d6a93dcafe21731e4325345a3f46/68747470733a2f2f73686570686572642e6465762f6769746875622f726561676f7264692f636f6e7472616374732d73657269616c697a61626c652d636c6f737572652f636f7665726167652e737667)](https://shepherd.dev/github/reagordi/contracts-serializable-closure)[![psalm-level](https://camo.githubusercontent.com/af8c86a9cafc96f465029a016aaa5c9cdd270f032fce5d538b6de53adfb2beac/68747470733a2f2f73686570686572642e6465762f6769746875622f726561676f7264692f636f6e7472616374732d73657269616c697a61626c652d636c6f737572652f6c6576656c2e737667)](https://shepherd.dev/github/reagordi/contracts-serializable-closure)

Designed to work with objects

Requirements
------------

[](#requirements)

- PHP 8.2 or higher.

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

[](#installation)

The package could be installed with composer:

```
composer require reagordi/contracts-serializable-closure
```

General usage
-------------

[](#general-usage)

Testing
-------

[](#testing)

### Unit testing

[](#unit-testing)

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```
./vendor/bin/phpunit
```

### Mutation testing

[](#mutation-testing)

The package tests are checked with [Infection](https://infection.github.io/) mutation framework with [Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:

```
./vendor/bin/roave-infection-static-analysis-plugin
```

### Static analysis

[](#static-analysis)

The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:

```
./vendor/bin/psalm
```

### Code style

[](#code-style)

Use [Rector](https://github.com/rectorphp/rector) to make codebase follow some specific rules or use either newest or any specific version of PHP:

```
./vendor/bin/rector
```

### Dependencies

[](#dependencies)

Use [ComposerRequireChecker](https://github.com/maglnet/ComposerRequireChecker) to detect transitive [Composer](https://getcomposer.org/) dependencies.

License
-------

[](#license)

The Reagordi Contracts Serializable Closure is free software. It is released under the terms of the BSD License. Please see [`LICENSE`](./LICENSE.md) for more information.

Maintained by [Reagordi Group](https://reagordi.com/).

Support the project
-------------------

[](#support-the-project)

[![Open Collective](https://camo.githubusercontent.com/a2b15f8e2268d4e3842e00d41ff7a57cce2ad8bd8d8769c5dc4fa05a546a4f62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f70656e253230436f6c6c6563746976652d73706f6e736f722d3765616466313f6c6f676f3d6f70656e253230636f6c6c656374697665266c6f676f436f6c6f723d376561646631266c6162656c436f6c6f723d353535353535)](https://opencollective.com/reagordi)

Follow updates
--------------

[](#follow-updates)

[![Official website](https://camo.githubusercontent.com/6a9d4aa1288d146b322d9ba818873c4f16750410331596e0ce8b3d061fbdcd63/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d526561676f7264695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](https://reagordi.com/)[![Telegram](https://camo.githubusercontent.com/4e38dd12535575c39c65bea7119b95e663abb2d1f4e3d669a27bbda07ef603f0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74656c656772616d2d6a6f696e2d3144413146323f7374796c653d666c6174266c6f676f3d74656c656772616d)](https://t.me/reagordi_community)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

742d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88198d1b31083878cd6056a2b8411436356b7bada47797a4a4e00829f7d6e222?d=identicon)[rufov](/maintainers/rufov)

---

Top Contributors

[![RufovSA](https://avatars.githubusercontent.com/u/78026078?v=4)](https://github.com/RufovSA "RufovSA (2 commits)")

---

Tags

closurereagordiserializeframeworkcontractsreagordi

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/reagordi-contracts-serializable-closure/health.svg)

```
[![Health](https://phpackages.com/badges/reagordi-contracts-serializable-closure/health.svg)](https://phpackages.com/packages/reagordi-contracts-serializable-closure)
```

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)

PHPackages © 2026

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