PHPackages                             grixu/socius-models - 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. [Database &amp; ORM](/categories/database)
4. /
5. grixu/socius-models

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

grixu/socius-models
===================

Models for Socius API and all apps using Socius which need to keep local copy of data.

v4.0.0(3y ago)01.8k[6 PRs](https://github.com/grixu/socius-models/pulls)2MITPHPPHP ^8.0

Since Jan 15Pushed 3y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (15)Versions (40)Used By (2)

Socius Models
=============

[](#socius-models)

This package contains models for Socius API and all apps using Socius and need to keep local data copy.

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

[](#installation)

You can install the package via composer:

```
composer require grixu/socius-models
```

Usage
-----

[](#usage)

Models are divided into 5 modules:

- product
- customer
- operator
- warehouse
- description

Of course, some models have cross-module relationships. Some of them are very natural like: descriptions have foreign key to products (it's obvious). We created migrations, models and factories to be much flexible as possible. So we only assume that tables in each module exists - models just checking table exists on cross-module relationships.

### Publishing migrations

[](#publishing-migrations)

By default, package do not loading migrations to your application. You must do it manually - it gives you power to control table structure - in case if you want to add some custom fields. If you do so, please remember about extending Model and overwrite default `$fillable`.

To publish migrations:

```
# php artisan vendor:publish --tag=socius-migrations-model-name
# Eg:
php artisan vendor:publish --tag=socius-migrations-branch

# Or all at once:
php artisan vendor:publish --tag=socius-migrations
```

### Generating models &amp; factories

[](#generating-models--factories)

You can also create local, customizable version both models &amp; their factories. To do that just type:

```
# php artisan socius:model-name ModelNameInLocalApp
# Eg:
php artisan socius:product MyProduct
```

You also could generate them with custom namespace for model &amp; factory:

```
php artisan socius:product MyProduct Custom\\Namespace\\Models Custom\\Namespace\\Factories
```

Same way with factories:

```
# php artisan socius:model-name-factory ModelNameInLocalApp
# Eg:
php artisan socius:product-factory MyFactory

# With custom namespace:
php artisan socius:product-factory MyFactory Custom\\Namespace\\Factories Custom\\Namespace\\Models
```

### 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

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 74.6% 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 ~17 days

Recently: every ~64 days

Total

33

Last Release

1387d ago

Major Versions

1.4.1 → 2.0.02021-04-28

v2.4.4 → 3.0.02021-09-30

3.2.2 → v4.0.02022-07-24

PHP version history (3 changes)1.0.0PHP ^7.4

1.1.4PHP ^7.4|^8.0

2.1.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/67002661?v=4)[Mateusz Gostański](/maintainers/grixu)[@grixu](https://github.com/grixu)

---

Top Contributors

[![grixu](https://avatars.githubusercontent.com/u/67002661?v=4)](https://github.com/grixu "grixu (44 commits)")[![mg-rywal](https://avatars.githubusercontent.com/u/54840559?v=4)](https://github.com/mg-rywal "mg-rywal (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

hacktoberfestgrixusocius-models

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[aglipanci/laravel-eloquent-case

Adds CASE statement support to Laravel Query Builder.

115157.2k](/packages/aglipanci-laravel-eloquent-case)

PHPackages © 2026

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