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

ActiveNeos-package[API Development](/categories/api)

punktde/sylius-api
==================

Sylius Shop Admin API Client for the Flow Framework

2.0.5(3y ago)215.4k↓50%4[1 PRs](https://github.com/punktDe/sylius-api/pulls)2MITPHP

Since May 28Pushed 3y ago5 watchersCompare

[ Source](https://github.com/punktDe/sylius-api)[ Packagist](https://packagist.org/packages/punktde/sylius-api)[ RSS](/packages/punktde-sylius-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (23)Used By (2)

Sylius Shop Admin API Client for the Flow Framework
===================================================

[](#sylius-shop-admin-api-client-for-the-flow-framework)

[![Latest Stable Version](https://camo.githubusercontent.com/81f6e51ecd79bdc85b51fe96f02d5c96006c07ad310a11eb5285b8aace566e10/68747470733a2f2f706f7365722e707567782e6f72672f70756e6b7464652f73796c6975732d6170692f762f737461626c65)](https://packagist.org/packages/punktde/sylius-api) [![Total Downloads](https://camo.githubusercontent.com/2c9aa47f7b43052d8f2e1e2a5143e7bdd7c53ba79c97431a8546959e4e65b6d9/68747470733a2f2f706f7365722e707567782e6f72672f70756e6b7464652f73796c6975732d6170692f646f776e6c6f616473)](https://packagist.org/packages/punktde/sylius-api)

This [Flow](https://flow.neos.io) package provides a programmable interface to the admin part of the [Sylius Shop](https://sylius.com/) unified [API](https://master.demo.sylius.com/api/v2/docs).

Version compatibility:

PunktDe.Sylius.ApiSylius API1.xAdmin API of Sylius &lt; 1.92.xAPI Platform unified APIImplemented Endpoints
---------------------

[](#implemented-endpoints)

The following Endpoints are currently implemented, see the [admin API documentation](https://master.demo.sylius.com/api/v2/docs) for details:

- Cart
- CartItem
- Checkout
- Country
- Customer
- Product
- ProductVariant
- Order
- User
- Zone

Setup
=====

[](#setup)

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

[](#installation)

The installation is done with composer:

```
composer require punktde/sylius-api

```

Configuration
-------------

[](#configuration)

- Create a new API user in Sylius.
- Configure URL and client credentials in your settings.

Usage Examples
==============

[](#usage-examples)

#### Find a single product by its identifier

[](#find-a-single-product-by-its-identifier)

```
    /**
     * @Flow\Inject
     * @var PunktDe\Sylius\Api\Resource\ProductResource
     */
    protected $products;

    /**
     * @param string $identifier
     * @return PunktDe\Sylius\Api\Dto\Product
     */
    private function findOneProductByIdentifier(string $identifier): PunktDe\Sylius\Api\Dto\Product {
        $this->products->get($identifier);
    }
```

#### Find an existing cart of the current logged in user

[](#find-an-existing-cart-of-the-current-logged-in-user)

```
    /**
     * @Flow\Inject
     * @var PunktDe\Sylius\Api\Resource\CartResource
     */
    protected $cartResource;

    /**
     * @return Cart|null
     */
    private function retrieveExistingCartByCustomerMail(): ?PunktDe\Sylius\Api\Dto\Cart
    {
        $cartCollection = $this->getCartResource()->getAll([
            'customer' => [
                'searchOption' => 'equal',
                'searchPhrase' => $this->getLoggedInUserEmail()
            ]
        ]);

        return current($cartCollection);
     }
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 72.5% 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 ~68 days

Recently: every ~101 days

Total

20

Last Release

1249d ago

Major Versions

1.5.2 → 2.0.02021-09-27

1.5.3 → 2.0.52022-12-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fad3b9ab04057e586b701aca7a8dbbf9598718114cdfd6bf85dada030f7688e?d=identicon)[punktde](/maintainers/punktde)

---

Top Contributors

[![daniellienert](https://avatars.githubusercontent.com/u/642226?v=4)](https://github.com/daniellienert "daniellienert (37 commits)")[![p-weisk](https://avatars.githubusercontent.com/u/28752561?v=4)](https://github.com/p-weisk "p-weisk (6 commits)")[![RobinLawinsky](https://avatars.githubusercontent.com/u/49674116?v=4)](https://github.com/RobinLawinsky "RobinLawinsky (6 commits)")[![ry107punkt](https://avatars.githubusercontent.com/u/51945694?v=4)](https://github.com/ry107punkt "ry107punkt (2 commits)")

---

Tags

flowframeworkhacktoberfestneoscmsshopsyliusapisyliusshopNeosapi-platformflow-framework

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[api-platform/symfony

Symfony API Platform integration

323.2M67](/packages/api-platform-symfony)[aimeos/aimeos-headless

Aimeos headless ecommerce system

2.5k2.3k](/packages/aimeos-aimeos-headless)[api-platform/serializer

API Platform core Serializer

223.4M31](/packages/api-platform-serializer)[rekalogika/mapper

An object mapper for PHP and Symfony. Maps an object to another object. Primarily used for transforming an entity to a DTO and vice versa.

3847.7k1](/packages/rekalogika-mapper)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27558.7k3](/packages/apigee-apigee-client-php)[signnow/api-php-sdk

Library to communicate with SignNow API

11138.0k](/packages/signnow-api-php-sdk)

PHPackages © 2026

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