php-http/mock-client
Mock HTTP client for HTTPlug/PHP-HTTP. Stores outgoing requests and returns queued responses or throws exceptions instead of making real network calls—ideal for unit tests of HTTP-dependent code. Install via Composer as a dev dependency.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| elastic/transport | PSR-7/17/18 HTTP transport library for Elastic PHP clients. Uses HTTPlug discovery for clients/factories and supports async via compatible PSR-18 clients (e.g., Guzzle, Symfony). Falls back to a built-in cURL client if none found. | 19 | 18 | 18 | 1M | 4 | 29.0 | 66.8 | MIT | 11 months ago | |
| elasticsearch/elasticsearch | Official PHP client for Elasticsearch. Connect to local or Elastic Cloud clusters and access 500+ REST API endpoints to index, search, retrieve, and delete documents, manage indices, and more, with docs and tooling for testing and mocking. | 5,343 | 5,520 | 971 | 3M | 13 | 72.9 | 50.1 | MIT | 2 months ago | |
| florianv/exchanger | Exchanger is a PHP framework for retrieving currency exchange rates from multiple providers (Fixer, Currency Data, Exchange Rates Data, and more). It offers a unified API for live and historical rates, supporting different base/quote currency constraints per service. | 187 | 187 | 90 | 75K | 0 | 32.6 | 42.3 | MIT | 4 weeks ago | |
| florianv/swap | Retrieve live currency exchange rates from multiple providers (Fixer, currencylayer, exchangeratesapi, etc.) with optional caching and fallbacks. PSR-friendly and integrates with MoneyPHP; also available via Symfony bundle and Laravel package. | 1,330 | 1,340 | 144 | 108K | 0 | 40.0 | 31.1 | MIT | 4 weeks ago | |
| knplabs/github-api | Lightweight, well-tested PHP wrapper for GitHub APIs v3 (REST) and v4 (GraphQL). PSR-17/PSR-18 compatible via HTTPlug, with easy setup using Guzzle, Symfony HttpClient, or other PSR clients. Supports framework integrations (Laravel via graham-campbell/github). | 2,200 | 2,227 | 592 | 489K | 39 | 67.8 | 59.7 | MIT | 1 year ago | |
| moneyphp/money | PHP library for handling money and currencies safely. Provides immutable Money and Currency value objects, arithmetic with proper rounding, comparisons, formatting, and allocation. Avoid floating-point errors in financial calculations; works well with PHP and frameworks like Laravel. | 4,822 | 4,850 | 442 | 3M | 4 | 67.7 | 46.5 | MIT | 5 months ago | |
| spatie/elasticsearch-query-builder | Lightweight fluent PHP query builder for Elasticsearch. Build and execute searches with an ergonomic Builder API: set index, add queries, aggregations, sorting, and filters, then run search() against the official Elasticsearch PHP client. | 183 | 183 | 46 | 32K | 0 | 31.4 | 36.4 | MIT | 3 months ago | |
| vonage/client-core | Core PHP client library for Vonage APIs (PHP 8.1+). Create a Vonage\Client with your API key/secret, make requests, and optionally customize base API URLs for testing. Install via Composer (vonage/client) or use core with your own HTTP client. | 928 | 929 | 179 | 338K | 2 | 39.5 | 42.1 | Apache-2.0 | 1 week ago |
How can I help you explore Laravel packages today?