PHPackages                             grixu/socius-dto - 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. grixu/socius-dto

AbandonedArchivedLibrary

grixu/socius-dto
================

Simple class for wrapping data with relations

2.0.0(3y ago)01.2k↓100%[6 PRs](https://github.com/grixu/socius-dto/pulls)3MITPHPPHP ^8.0

Since May 14Pushed 3y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (10)Versions (14)Used By (3)

socius-dto
==========

[](#socius-dto)

Simple class for wrapping data with relations.

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

[](#installation)

You can install the package via composer:

```
composer require grixu/socius-dto
```

Usage
-----

[](#usage)

```
class YourDto extends \Grixu\SociusDto\SociusDto
{
    // go forward as with normal DTO from spatie/data-transfer-object
    public string $some;
}

// Let's create one DTO object
$dto = new YourDto([
    'some' => 'data',
    'relations' => [
        [
            'foreignModel' => ForeignModel::class,
            'relation' => 'relationName',
            'foreignField' => 'xl_id',
            'type' => BelongsTo::class,
            'foreignKeys' => 'id',
        ],
    ]);
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mateusz Gostański](https://github.com/grixu)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 92.1% 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 ~73 days

Recently: every ~64 days

Total

7

Last Release

1385d ago

Major Versions

1.2.2 → 2.0.02022-07-24

### Community

Maintainers

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

---

Top Contributors

[![grixu](https://avatars.githubusercontent.com/u/67002661?v=4)](https://github.com/grixu "grixu (35 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

grixusocius-dto

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/grixu-socius-dto/health.svg)

```
[![Health](https://phpackages.com/badges/grixu-socius-dto/health.svg)](https://phpackages.com/packages/grixu-socius-dto)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)

PHPackages © 2026

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