PHPackages                             looqey/speca - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. looqey/speca

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

looqey/speca
============

Describe your specs through expressive data classes

1.1.3(1y ago)286[2 issues](https://github.com/looqey/speca/issues)MITPHPPHP ^8.1

Since Feb 16Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (7)Used By (0)

Speca - Data Specification and Transformation for PHP
=====================================================

[](#speca---data-specification-and-transformation-for-php)

Speca is a **flexible** and **powerful** implementation of data classes designed for seamless interaction with external systems (such as API DTOs) and efficient data flow management across different domains. Inspired by **domain-driven design (DDD)** principles, Speca provides a **structured and adaptable** approach to handling data transformations.

Why Speca?
----------

[](#why-speca)

- **Automatic property population** – No more manual assignments. Speca maps input arrays directly to object properties.
- **Attribute-based parsing and serialization** – Fine-tune how data is handled using PHP attributes.
- **Lazy properties** – Optimize performance by loading data only when needed.
- **No external dependencies** – Speca is built purely on PHP's native capabilities, ensuring compatibility and minimal footprint.

With Speca, data structures become more than just objects—they represent **specifications**, defining how data is parsed, transformed, and serialized across your application.

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

[](#installation)

Install Speca via Composer:

```
composer require looqey/speca
```

Documentation 📖
---------------

[](#documentation-)

For a detailed guide on using this library, visit the 👉 [official documentation](https://speca.looqey.ru)

Contributing 🤝
--------------

[](#contributing-)

We welcome contributions! If you have ideas, improvements, or find an issue, feel free to **open an issue or submit a pull request**. Your feedback and contributions help make Speca even better! 🚀

---

Let's shape the future of PHP data handling together! 💡🚀

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~12 days

Total

6

Last Release

393d ago

Major Versions

0.1.0a → 1.0.02025-02-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/834612924c4b4dcda24c3539b25e5ba695373472cc55969c68849f40b0a7433f?d=identicon)[looqey](/maintainers/looqey)

---

Top Contributors

[![looqey](https://avatars.githubusercontent.com/u/60235269?v=4)](https://github.com/looqey "looqey (12 commits)")

---

Tags

dataspecificationarchitecturedata-classspeca

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/looqey-speca/health.svg)

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

###  Alternatives

[fakerphp/faker

Faker is a PHP library that generates fake data for you.

4.0k358.5M3.5k](/packages/fakerphp-faker)[dflydev/dot-access-data

Given a deep data structure, access data by dot notation.

720359.1M86](/packages/dflydev-dot-access-data)[mbezhanov/faker-provider-collection

A collection of custom providers for the Faker library

2138.6M24](/packages/mbezhanov-faker-provider-collection)[php-units-of-measure/php-units-of-measure

A PHP library for converting between standard units of measure.

3123.4M20](/packages/php-units-of-measure-php-units-of-measure)[amenadiel/jpgraph

Composer Friendly, full refactor of JpGraph, library to make graphs and charts

1492.2M7](/packages/amenadiel-jpgraph)[jbzoo/data

An extended version of the ArrayObject object for working with system settings or just for working with data arrays

891.6M23](/packages/jbzoo-data)

PHPackages © 2026

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