PHPackages                             lia-tec/http - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. lia-tec/http

ActiveLibrary[HTTP &amp; Networking](/categories/http)

lia-tec/http
============

1.0.6(3y ago)028MITPHP

Since Apr 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lia-tec/http)[ Packagist](https://packagist.org/packages/lia-tec/http)[ RSS](/packages/lia-tec-http/feed)WikiDiscussions main Synced today

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

Base Http Client
================

[](#base-http-client)

Usage
-----

[](#usage)

### Create credential for Basic Auth

[](#create-credential-for-basic-auth)

Extends from `LiaTec\Http\Credential` and create custom class credential

```
use LiaTec\Http\Credential;

class MyCustomCredential extends Credential
{
    /**
    * Init any value
    *
    * @return void
    */
    public function boot()
    {

    }

    /**
    * Modifies request headers if you need
    *
    * @return void
    */
    public function request()
    {
        // $this->header('Test', 'Testing');
    }

    /**
     * Prepare payload for Basic auth token
     * username and password values are required
     */
    public function getTokenRequestParameters(): array
    {
        return [
            'username' => $this->username,
            'password' => $this->password,
        ];
    }
}
```

Get basic client from factory

```
$client = Http::basic(
    new MyCustomCredential(['username' => $this->username, 'password' => $this->password])
)->protocol('https')->baseUrl("domain.com");
```

Make calls

```
$client->get('resourceName'); // calls: GET https://domain.com/resourceName
$client->post('resourceName',[ 'payload'=>'value', 'more'=> true ]);
$client->put('resourceName',[ 'payload'=>'value', 'more'=> true ]);
$client->patch('resourceName',[ 'payload'=>'value', 'more'=> true ]);
```

Every call gets the `Authorization: Basic ` header, where `` is made with `base64_encode("{username}:{password}")`

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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 ~16 days

Recently: every ~28 days

Total

12

Last Release

1354d ago

Major Versions

0.1.0 → 1.0.12022-06-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/77f97d9ced0816f55357cf6c52d953ad7234d9eaa2e971f4e5340500df8803db?d=identicon)[lia\_tec](/maintainers/lia_tec)

---

Top Contributors

[![cmpere](https://avatars.githubusercontent.com/u/4393094?v=4)](https://github.com/cmpere "cmpere (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lia-tec-http/health.svg)

```
[![Health](https://phpackages.com/badges/lia-tec-http/health.svg)](https://phpackages.com/packages/lia-tec-http)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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