PHPackages                             latvijas-talrunis/api-auth-client-maker - 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. latvijas-talrunis/api-auth-client-maker

ActiveLibrary

latvijas-talrunis/api-auth-client-maker
=======================================

An API Client Maker For Specific Purpose

02PHP

Since Feb 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ArmandsRiekstinsLT/lt-api-client-maker)[ Packagist](https://packagist.org/packages/latvijas-talrunis/api-auth-client-maker)[ RSS](/packages/latvijas-talrunis-api-auth-client-maker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

APIClientMaker
==============

[](#apiclientmaker)

from LT/Utils
-------------

[](#from-ltutils)

How to set up in symfony:

1. Install with

```
    composer require latvijas-talrunis/api-auth-client-maker

```

In the case of your project not being able to find the ClientMaker. This might help:

```
    composer dump-autoload

```

2. Update your project's

```
services:
    LT\Utils\ApiClientMaker\ClientMaker:
        arguments:
            $authServiceUrl: '%env(string:AUTH_SERVICE_URL)%'
            $authServiceUser: '%env(string:AUTH_SERVICE_USER)%'
            $authServicePassword: '%env(string:AUTH_SERVICE_PASSWORD)%'

```

3. Update your .env file with these 3 variables

```
    AUTH_SERVICE_URL=http://url.to.the.auth.service
    AUTH_SERVICE_USER=root
    AUTH_SERVICE_PASSWORD=

```

4. And for the controller:

It needs a class property in which to keep the instantiated ClientMaker

```
    public $clientMaker;

```

It needs to be set up in the clients constructor

```
    public function __construct(ApiClientMaker $serviceMediatorClientMaker){
    $this->clientMaker = $serviceMediatorClientMaker;
    }

```

And then it will be available in every method of this particular controller

```
    #[Route('/test')]
    public function index(): Response
    {
    // authorized symfony http client
    $client = $this->clientMaker->getClient();
    }

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb87bb7cee78c6cf00676bfc1b92bb857fab7b478a9f857c9709d368356c404a?d=identicon)[ArmandsRiekstinsLT](/maintainers/ArmandsRiekstinsLT)

---

Top Contributors

[![ArmandsRiekstinsLT](https://avatars.githubusercontent.com/u/124884553?v=4)](https://github.com/ArmandsRiekstinsLT "ArmandsRiekstinsLT (5 commits)")

### Embed Badge

![Health badge](/badges/latvijas-talrunis-api-auth-client-maker/health.svg)

```
[![Health](https://phpackages.com/badges/latvijas-talrunis-api-auth-client-maker/health.svg)](https://phpackages.com/packages/latvijas-talrunis-api-auth-client-maker)
```

PHPackages © 2026

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