rest / client
An elegant wrapper for working with REST APIs and PSR clients.
dev-main
2024-12-13 00:38 UTC
Requires
- php: ^8.4
- guzzlehttp/guzzle: ^7.0
- psr-discovery/discovery: dev-add-try-catch as 1.1.0
- psr-discovery/http-client-implementations: ^1.2
- psr/http-client: ^1.0
- psr/http-client-implementation: ^1.0
- psr/http-factory: ^1.1
- psr/http-factory-implementation: ^1.0
- psr/http-message: ^2.0
Requires (Dev)
- aidan-casey/mock-client: dev-master
- ergebnis/composer-normalize: dev-main
- friendsofphp/php-cs-fixer: dev-master
- nyholm/psr7: ^1.8@dev
- phpstan/phpstan: 2.0.x-dev
- phpunit/phpunit: ^11.4.4
This package is not auto-updated.
Last update: 2024-12-21 21:03:24 UTC
README
This library is a lightweight, flexible PHP client for making REST API requests. It simplifies HTTP request handling by offering a builder-pattern interface for constructing requests and converting responses. This client supports all common HTTP methods and adheres to PSR standards, ensuring compatibility with existing PHP libraries and frameworks.
Installation
Coming Soon
Features
- PSR-7 and PSR-18 Compatible: Leverages PSR interfaces for requests, responses, and HTTP client integration.
- Builder Pattern: Use the RestRequestBuilder to construct requests intuitively.
- Supports All HTTP Methods: Includes GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, and TRACE.
- Customizable Configuration: Includes authentication and other configuration options via RestClientConfiguration.
- Boolean Query Parameters: Handles boolean query parameters, converting them to string representations as needed.