adachsoft / internet-search-contract
Interface for an API client for internet search.
Installs: 5
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/adachsoft/internet-search-contract
Requires
- php: ^8.3
Requires (Dev)
- adachsoft/php-code-style: v0.3.0
- friendsofphp/php-cs-fixer: ^3.68
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.0
- rector/rector: ^2.3.3
This package is not auto-updated.
Last update: 2026-02-13 18:05:11 UTC
README
This library defines an interface for an API client responsible for performing internet search requests. It is intended to be used as a shared contract between applications and concrete HTTP clients.
Installation
composer require adachsoft/internet-search-contract
Usage
Implement the AdachSoft\\InternetSearchContract\\InternetSearchClientInterface in your application
and inject your implementation wherever you need to perform internet search calls.
Domain-specific exceptions provided by this package:
AdachSoft\\InternetSearchContract\\InternetSearchExceptionbase exception for search-related errors,AdachSoft\\InternetSearchContract\\ResourceExhaustedExceptionindicates that the underlying service or resource limits were exhausted,AdachSoft\\InternetSearchContract\\RetriableExceptionindicates that the operation can be safely retried later.
License
This library is released under the MIT License.