{"id":21163476,"url":"https://github.com/punktde/sylius-api","last_synced_at":"2026-03-14T20:02:24.078Z","repository":{"id":46997252,"uuid":"178356684","full_name":"punktDe/sylius-api","owner":"punktDe","description":"Sylius Admin API Client for the Flow Framework","archived":false,"fork":false,"pushed_at":"2022-12-22T08:46:42.000Z","size":64,"stargazers_count":2,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-24T19:09:47.944Z","etag":null,"topics":["flowframework","hacktoberfest","neoscms","shop","sylius"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/punktDe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-29T07:40:39.000Z","updated_at":"2023-01-10T11:03:35.000Z","dependencies_parsed_at":"2023-01-30T06:16:37.634Z","dependency_job_id":null,"html_url":"https://github.com/punktDe/sylius-api","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/punktDe/sylius-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fsylius-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fsylius-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fsylius-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fsylius-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/punktDe","download_url":"https://codeload.github.com/punktDe/sylius-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fsylius-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264486413,"owners_count":23616043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flowframework","hacktoberfest","neoscms","shop","sylius"],"created_at":"2024-11-20T13:47:18.437Z","updated_at":"2026-03-14T20:02:23.974Z","avatar_url":"https://github.com/punktDe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sylius Shop Admin API Client for the Flow Framework\n\n[![Latest Stable Version](https://poser.pugx.org/punktde/sylius-api/v/stable)](https://packagist.org/packages/punktde/sylius-api) [![Total Downloads](https://poser.pugx.org/punktde/sylius-api/downloads)](https://packagist.org/packages/punktde/sylius-api)\n\nThis [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).\n\nVersion compatibility:\n\n|PunktDe.Sylius.Api| Sylius API                |\n|------------------|---------------------------|\n| 1.x              | Admin API of Sylius \u003c 1.9 |\n| 2.x              | API Platform unified API  |\n\n## Implemented Endpoints\n\nThe following Endpoints are currently implemented, see the [admin API documentation](https://master.demo.sylius.com/api/v2/docs) for details:\n\n* Cart\n* CartItem\n* Checkout\n* Country\n* Customer\n* Product\n* ProductVariant\n* Order\n* User\n* Zone\n\n\n# Setup\n\n## Installation\n\nThe installation is done with composer:\n\n\tcomposer require punktde/sylius-api\n\t\n## Configuration\n\n* Create a new API user in Sylius.\n* Configure URL and client credentials in your settings.\n\n# Usage Examples\n\n#### Find a single product by its identifier\n\n```php\n    /**\n     * @Flow\\Inject\n     * @var PunktDe\\Sylius\\Api\\Resource\\ProductResource\n     */\n    protected $products;\n\n    /**\n     * @param string $identifier\n     * @return PunktDe\\Sylius\\Api\\Dto\\Product\n     */\n    private function findOneProductByIdentifier(string $identifier): PunktDe\\Sylius\\Api\\Dto\\Product {\n        $this-\u003eproducts-\u003eget($identifier);\n    }\n```\n\n#### Find an existing cart of the current logged in user\n\n```php\n    /**\n     * @Flow\\Inject\n     * @var PunktDe\\Sylius\\Api\\Resource\\CartResource\n     */\n    protected $cartResource;\n\n    /**\n     * @return Cart|null\n     */\n    private function retrieveExistingCartByCustomerMail(): ?PunktDe\\Sylius\\Api\\Dto\\Cart\n    {\n        $cartCollection = $this-\u003egetCartResource()-\u003egetAll([\n            'customer' =\u003e [\n                'searchOption' =\u003e 'equal',\n                'searchPhrase' =\u003e $this-\u003egetLoggedInUserEmail()\n            ]\n        ]);\n        \n        return current($cartCollection);\n     }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunktde%2Fsylius-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpunktde%2Fsylius-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunktde%2Fsylius-api/lists"}