PHPackages                             krzysztof-moskalik/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. krzysztof-moskalik/api-client-bundle

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

krzysztof-moskalik/api-client-bundle
====================================

Bridge for KrzysztofMoskalik\\ApiClient

1.1.0(5mo ago)01MITPHPPHP &gt;=8.5

Since Jan 21Pushed 5mo agoCompare

[ Source](https://github.com/KrzysztofMoskalik/api-client-bundle)[ Packagist](https://packagist.org/packages/krzysztof-moskalik/api-client-bundle)[ RSS](/packages/krzysztof-moskalik-api-client-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (3)Used By (0)

API Client Bundle
=================

[](#api-client-bundle)

**Note: Project under construction!
Not All features are implemented yet!**

This Project is a bridge for ApiClient ([krzysztof-moskalik/api-client](https://github.com/KrzysztofMoskalik/api-client)).

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

[](#installation)

Install this package via composer:

```
composer require krzysztof-moskalik/api-client-bundle'

```

Then register bundle in `config/bundles.php`:

```
    KrzysztofMoskalik\ApiClientBundle\ApiClientBundle::class => ['all' => true],

```

Place configuration in `config\packages\api_client.yaml` file.

Configuration Reference
-----------------------

[](#configuration-reference)

```
api_client:
    api:
        my_api:
            baseUrl: https://my-api.example.com // API host
            auth: // remove if Api has no auth
                method: basic // basic and token are supported for now
                username: test-user // username for `basic` auth
                password: test-user-password // password for `basic` auth
                token: bG9yZW0gaXBzdW0= // token for `token` auth
                header: X-Auth-Token // header for containing token auth
            extraHeaders: // extra headers for all requests
                Accept: application/json
    resources: // resources in your api
        users:
            path: /v1/users // path to resource
            model: App\Model\User // model used to store and fetch data
            api: my_api // api related to this resource
            endpoints: // endpoints in this resource
                getAll: // endpoint label
                    requestDataPath: 'user' // path to data in request body (optional)
                    responseDataPath: 'data' // path to data in respons body (optional)
                    type: create // endpoint type (create | get | getAll | update | updatePartial | delete)

```

Usage
-----

[](#usage)

Just simply inject `KrzysztofMoskalik\ApiClient\Client` class into your service. Then you can get a repository for your model:

```
$repository = $this->client->getRepository(User::class);

```

And then call some action (which should be configured beforehand):

```
$users = $repository->getAll();

```

And that is all!

**Note: For now only `create`, `get`, and `getAll` actions are supported!**

Custom Repository
-----------------

[](#custom-repository)

You can also create a custom repository. All you need to do is create class which extends `KrzysztofMoskalik\ApiClient\AbstractRepository` and override `supports` method:

```
public static function supports(): string
{
    return User::class;
}

```

Now you can create custom methods and call built-in ones from them.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance71

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

162d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/491c203c651745274ac1cf3968e5071d650cb524e76f2dead5b5dceeb5e0f28f?d=identicon)[krzysztof-moskalik](/maintainers/krzysztof-moskalik)

---

Top Contributors

[![KrzysztofMoskalik](https://avatars.githubusercontent.com/u/9136446?v=4)](https://github.com/KrzysztofMoskalik "KrzysztofMoskalik (2 commits)")

### Embed Badge

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

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

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[sylius/sylius

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

8.5k5.9M738](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M386](/packages/easycorp-easyadmin-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

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

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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