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 yesterday

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 75% 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

1440d 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

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)

PHPackages © 2026

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