PHPackages                             yusefauto1/service-api-client-bundle - 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. yusefauto1/service-api-client-bundle

ActiveAuto1-bundle[API Development](/categories/api)

yusefauto1/service-api-client-bundle
====================================

Auto1 Service API Client for PHP projects

v1.0.6(6y ago)080MITPHPPHP &gt;=7.0.8

Since Feb 19Pushed 6y agoCompare

[ Source](https://github.com/yusefauto1/service-api-client-bundle)[ Packagist](https://packagist.org/packages/yusefauto1/service-api-client-bundle)[ RSS](/packages/yusefauto1-service-api-client-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (20)Versions (8)Used By (0)

Usage
-----

[](#usage)

Bundle uses *php-http/httplug* client abstraction. So you'll need to install some psr7-compatible client into your project to be used by this bundle. For more details: [php-http/httplug clients and adapters](http://docs.php-http.org/en/latest/clients.html).

config.yml
----------

[](#configyml)

```
auto1_service_api_client:
    request_visitors:
        - '@visitor1'
        - '@visitor2'
```

Request visitors (RequestVisitorInterface) are aimed to modify your Request - like adding custom headers. You can also TAG services with '**auto1.api.request\_visitor**' to make them visitors. **Warning!** By setting this configuration you will override default values!

Example of EP definition (yaml):
--------------------------------

[](#example-of-ep-definition-yaml)

```
postUnicorn:
    method:        'POST'
    baseUrl:       'http://google.com'
    path:          '/v1/unicorn'
    requestFormat: 'url'
    requestClass:  'Auto1\ServiceDTOCollection\Unicorns\Request\PostUnicorn'
    responseClass: 'Auto1\ServiceDTOCollection\Unicorns\Response\Unicorn'

listUnicorns:
    method:        'GET'
    baseUrl:       'http://google.com'
    path:          '/v1/unicorns'
    requestFormat: 'json'
    requestClass:  'Auto1\ServiceDTOCollection\Unicorns\Request\SearchUnicorns'
    responseClass: 'Auto1\ServiceDTOCollection\Unicorns\Response\Unicorn[]'
```

Example of ServiceRequest implementation:
-----------------------------------------

[](#example-of-servicerequest-implementation)

```
class PostUnicorn implements ServiceRequestInterface
{
    private $horn;

    public function setHorn(string $horn): self
    {
        $this->horn = $horn;

        return $this;
    }

    public function getHorn()
    {
        return $this->horn;
    }
}
```

Example of Repository implementation:
-------------------------------------

[](#example-of-repository-implementation)

```
class UnicornRepository
{
    public function __construct(APIClientInterface $apiClient,)
    {
        $this->apiClient = $apiClient;
    }

    /**
     * @param string $horn
     *
     * @return Unicorn[]
     */
    public function getListByHorn(string $horn): array
    {
        $serviceRequest = (new GetUnicornsByHornRequest())->setHorn($horn);

        return $this->apiClient->send($serviceRequest);
    }
}
```

For more info - have a look at [service-api-components-bundle](https://github.com/auto1-oss/service-api-components-bundle) usage:

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 56% 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 ~45 days

Recently: every ~53 days

Total

7

Last Release

2419d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53563897?v=4)[Yusef](/maintainers/yusefauto1)[@yusefauto1](https://github.com/yusefauto1)

---

Top Contributors

[![yusefauto1](https://avatars.githubusercontent.com/u/53563897?v=4)](https://github.com/yusefauto1 "yusefauto1 (14 commits)")[![sklabinsky](https://avatars.githubusercontent.com/u/20512721?v=4)](https://github.com/sklabinsky "sklabinsky (7 commits)")[![v-chmykov](https://avatars.githubusercontent.com/u/8100395?v=4)](https://github.com/v-chmykov "v-chmykov (2 commits)")[![daydiff](https://avatars.githubusercontent.com/u/2212845?v=4)](https://github.com/daydiff "daydiff (1 commits)")[![rooodik](https://avatars.githubusercontent.com/u/47384543?v=4)](https://github.com/rooodik "rooodik (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yusefauto1-service-api-client-bundle/health.svg)

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

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)

PHPackages © 2026

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