PHPackages                             friendsofapi/sylius-api-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. friendsofapi/sylius-api-client

ActiveLibrary[API Development](/categories/api)

friendsofapi/sylius-api-client
==============================

A client for Sylius APIs

0.2.6(5y ago)106.6k8[3 issues](https://github.com/FriendsOfApi/sylius-api-client/issues)[1 PRs](https://github.com/FriendsOfApi/sylius-api-client/pulls)MITPHPPHP ^7.1CI failing

Since Nov 15Pushed 4y ago2 watchersCompare

[ Source](https://github.com/FriendsOfApi/sylius-api-client)[ Packagist](https://packagist.org/packages/friendsofapi/sylius-api-client)[ RSS](/packages/friendsofapi-sylius-api-client/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (8)Dependencies (11)Versions (9)Used By (0)

Sylius API client
=================

[](#sylius-api-client)

[![Latest Version](https://camo.githubusercontent.com/e74593bc7449223c003595666d99f09db18c5d754e865816e51af7b0d5d273ad/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f467269656e64734f664170692f73796c6975732d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/FriendsOfApi/sylius-api-client/releases)[![Build Status](https://camo.githubusercontent.com/79ace45ea260c97e19f8ece09ba9c5cd44265e6b2130a65993eee79601717413/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f467269656e64734f664170692f73796c6975732d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/FriendsOfApi/sylius-api-client)[![Code Coverage](https://camo.githubusercontent.com/e8d5d6f6d57e454eb03a8742faac39d8335f58f5ccfc40400478cc3243aa97f2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f467269656e64734f664170692f73796c6975732d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/FriendsOfApi/sylius-api-client)[![Quality Score](https://camo.githubusercontent.com/810749c539d104797eb7cc7b08d9744eaf69f87dad9426ebd105a2dd8cd4d8cf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f467269656e64734f664170692f73796c6975732d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/FriendsOfApi/sylius-api-client)[![Total Downloads](https://camo.githubusercontent.com/9faf7bbe61ffcb18141643e3a5229e4508e10c0e1024766347a7aa746d5b6c83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667269656e64736f666170692f73796c6975732d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/friendsofapi/sylius-api-client)

Install
-------

[](#install)

Via Composer

```
$ composer require friendsofapi/sylius-api-client
```

Usage
-----

[](#usage)

```
$apiClient = SyliusClient::create($endpoint, $clientId, $clientSecret);
$accessToken = $apiClient->createNewAccessToken($username, $password);
$apiClient->authenticate($accessToken);
$allProducts = $apiClient->product()->getAll()
```

Develop
-------

[](#develop)

APIs are usually split into categories, called **Resources**. In your implementation you should also reflect these categories, for example by having their own classes in `Api/`. Let's take a look at `Api/Stats` in our case. The response of any call should be an object in `Model/Stats/X`, like `Model/Stats/Total`.

### Hydrator

[](#hydrator)

The end user chooses which hydrator to use. The default one should return domain objects.

### Request builder

[](#request-builder)

The request builder creates a PSR-7 request with a multipart stream when necessary If the API does not require multipart streams you should remove the `RequestBuilder`and replace it with a `RequestFactory`.

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~79 days

Recently: every ~133 days

Total

8

Last Release

2184d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (55 commits)")[![kaszim](https://avatars.githubusercontent.com/u/12778025?v=4)](https://github.com/kaszim "kaszim (35 commits)")[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (22 commits)")[![aradoje](https://avatars.githubusercontent.com/u/30075502?v=4)](https://github.com/aradoje "aradoje (5 commits)")[![samnela](https://avatars.githubusercontent.com/u/1852108?v=4)](https://github.com/samnela "samnela (2 commits)")

---

Tags

apisylius

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/friendsofapi-sylius-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/friendsofapi-sylius-api-client/health.svg)](https://phpackages.com/packages/friendsofapi-sylius-api-client)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[m4tthumphrey/php-gitlab-api

GitLab API v4 client for PHP

9485.4M64](/packages/m4tthumphrey-php-gitlab-api)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[deeplcom/deepl-php

Official DeepL API Client Library

2616.2M66](/packages/deeplcom-deepl-php)

PHPackages © 2026

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