cline / relay
A modern, attribute-driven HTTP client for PHP
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/cline/relay
Requires
- php: ^8.4
- crell/attributeutils: ^1.3
- guzzlehttp/guzzle: ^7.10
- illuminate/support: *
- league/oauth2-server: ^9.3
- nyholm/psr7: ^1.8.2
- psr/http-client: ^1.0.3
- psr/http-factory: ^1.1
- psr/http-message: ^2.0
- psr/simple-cache: ^3.0
- spatie/laravel-package-tools: ^1.92.7
Requires (Dev)
- cline/php-cs-fixer: ^1.2.1
- driftingly/rector-laravel: ^2.1.3
- ergebnis/composer-normalize: ^2.49@dev
- laravel/pint: ^1.26.0
- orchestra/testbench: ^10.8
- pestphp/pest: ^4.1.6
- pestphp/pest-plugin-laravel: ^4.0
- pestphp/pest-plugin-type-coverage: ^4.0.3
- phpstan/phpstan: ^2.1.32
- rector/rector: ^2.2.9
- symfony/var-dumper: ^7.4.0
README
Relay is a modern, attribute-driven HTTP client for PHP 8.4+. It provides an elegant, type-safe API for building API integrations with support for authentication, caching, rate limiting, retries, and more.
Requirements
Requires PHP 8.4+
Installation
composer require cline/relay
Documentation
- Getting Started - Installation and basic concepts
- Connectors - Creating and configuring API connectors
- Requests - Building typed request objects
- Responses - Working with API responses
- Attributes - HTTP methods, content types, and behavior attributes
- Authentication - Bearer tokens, Basic auth, and custom strategies
- Middleware - Request/response middleware
- Caching - Response caching strategies
- Rate Limiting - Client-side rate limiting
- Resilience - Retries and circuit breakers
- Pagination - Handling paginated APIs
- Pooling - Concurrent request execution
- Testing - Mocking and fixtures
- Debugging - Request/response inspection
- Advanced Usage - DTOs, macros, and more
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.