PHPackages                             grixu/socius-client - 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. [API Development](/categories/api)
4. /
5. grixu/socius-client

AbandonedArchivedLibrary[API Development](/categories/api)

grixu/socius-client
===================

PHP Client for Socius API

2.7.2(4y ago)0821[5 PRs](https://github.com/grixu/socius-client/pulls)MITPHPPHP ^8.0

Since Oct 29Pushed 3y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (13)Versions (33)Used By (0)

Socius Client
=============

[](#socius-client)

Socius Client is easy to use client for Socius API

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

[](#installation)

Use the \[composer() to install it in your project.

```
composer require grixu/socius-client
```

Basic usage
-----------

[](#basic-usage)

Start with fill you `.env` file with proper data for connection with Socius API:

```
SOCIUS_BASE_URL=""
SOCIUS_OAUTH=""
SOCIUS_CLIENT_ID=""
SOCIUS_CLIENT_KEY=""
```

Then you can use facade `SociusClient` and simply make call to API:

```
use Grixu\SociusClient\SociusClientFacade as SociusClient;

$query = SociusClient::product()->compose()->addFilter('name', 'SZKLO');
$query->fetch();

$data = $query->parse(DtoClass::class);
```

Use can use `SociusClient` facade to start make query to Socius API, by choosing which module you would like to query:

- `product`
- `productType`
- `category`
- `brand`
- `description`
- `language`
- `operator`
- `operatorRole`
- `branch`
- `customer`
- `warehouse`
- `order`
- `order_element`

After call one of those functions, you can add filters to query or sorting or request related data via calling `compose()` and one of below methods:

- `addFilter('column_name', ...'values')`
- `addSort('column_name')`
- `addInclude('column_name')`

After that just call `fetch(page_number)` (or without `page_number` to fetch all data) and `getResults`to receive `DataTransferObjectCollection` object with received data from Socius API.

You can also make a *relationship* call which download extra data which contains relationship details between models. It's easy to use them via calling one of those methods on `SociusClient`:

- `product_relationship`
- `category_relationship`
- `description_relationship`
- `operator_relationship`
- `warehouse_relationship`
- `stock_relationship`
- `order_relationship`
- `order_element_relationship`

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

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 78.3% 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 ~15 days

Recently: every ~4 days

Total

26

Last Release

1633d ago

Major Versions

1.3.2 → 2.0.02021-02-12

PHP version history (3 changes)1.0.0PHP ^7.4

1.3.0PHP ^7.4|^8.0

2.0.0PHP ^8.0

### 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 (36 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![mg-rywal](https://avatars.githubusercontent.com/u/54840559?v=4)](https://github.com/mg-rywal "mg-rywal (4 commits)")

---

Tags

grixusocius-client

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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