PHPackages                             polysource/adapter-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. polysource/adapter-http

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

polysource/adapter-http
=======================

Polysource — HTTP REST API adapter: list, browse, write external API resources through the admin (with cursor or page-based pagination strategies).

v0.9.0(2mo ago)09MITPHP &gt;=8.1

Since May 8Compare

[ Source](https://github.com/polysource/adapter-http)[ Packagist](https://packagist.org/packages/polysource/adapter-http)[ Docs](https://github.com/polysource/polysource)[ RSS](/packages/polysource-adapter-http/feed)WikiDiscussions Synced 3w ago

READMEChangelogDependencies (7)Versions (26)Used By (0)

polysource/adapter-http
=======================

[](#polysourceadapter-http)

> HTTP REST API adapter for Polysource — admin Stripe, GitHub, internal microservices, any external REST API you operate but don't own the schema of.

Part of the [Polysource](https://github.com/polysource/polysource) monorepo. MIT-licensed.

What it ships
-------------

[](#what-it-ships)

- **`HttpDataSource`** — implements `WritableDataSourceInterface` over Symfony `HttpClientInterface`.
- **`PaginationStrategyInterface`** — pluggable pagination protocol with two built-in implementations:
    - `PageNumberPaginationStrategy` — `?page=N` style (Stripe-like)
    - `CursorPaginationStrategy` — opaque cursor in response (GitHub-like)
- `defaultHeaders` constructor arg for injecting auth headers (Bearer tokens, API keys).
- **`HttpResource`** — non-final convenience base.
- Tested with Symfony's `MockHttpClient` so no live API calls in CI.

Install
-------

[](#install)

```
composer require polysource/adapter-http symfony/http-client
```

Register the bundle:

```
return [
    Polysource\Adapter\Http\PolysourceAdapterHttpBundle::class => ['all' => true],
];
```

Extend it
---------

[](#extend-it)

For an API that paginates in an unusual way (link headers, X-Pagination, RFC 5988…), implement `PaginationStrategyInterface` (2 methods):

```
final class LinkHeaderPaginationStrategy implements PaginationStrategyInterface
{
    public function buildRequest(DataQuery $query): array { /* return query + headers */ }
    public function parseResponse(ResponseInterface $response): DataPage { /* parse Link header */ }
}
```

Inject into `HttpDataSource`. No fork needed. See [extensibility map](../../docs/user/extensibility.md#6-custom-http-pagination-strategy).

Documentation
-------------

[](#documentation)

- [Adapter HTTP guide](../../docs/user/adapters/http.md)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance86

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

25

Last Release

68d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/41d53ab82016651b0a4a9ef71644a54f934d8bf54ccbc59fc0183f994213ef38?d=identicon)[samaym](/maintainers/samaym)

---

Tags

httpapisymfonyrestadapterpolysource

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/polysource-adapter-http/health.svg)

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

PHPackages © 2026

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