rdurica / restnova
RESTnova is a lightweight and modern PHP client for making HTTP requests, specifically designed for communicating with RESTful APIs. It provides an intuitive interface for sending GET, POST, PUT, DELETE, and other HTTP requests effortlessly.
Requires
- php: >=8.3
- ext-curl: *
Requires (Dev)
- dg/bypass-finals: ^1.4
- mockery/mockery: ^1.6.11
- phpstan/phpstan: ^1.10.66
- phpunit/phpunit: ^11.1.1
- squizlabs/php_codesniffer: ^3.9.1
This package is auto-updated.
Last update: 2024-10-22 23:21:30 UTC
README
RESTnova is a lightweight and modern PHP client for making HTTP requests, specifically designed for communicating with RESTful APIs. It provides an intuitive interface for sending GET, POST, PUT, DELETE, and other HTTP requests effortlessly.
Features
- Simple and intuitive API for sending HTTP requests
- Supports various HTTP methods: GET, POST, PUT, DELETE, etc.
- Modern and lightweight design
- Required PHP >= 8.3
Installation
You can install RESTnova via Composer.
composer require rdurica/restnova
Usage
// Create client. All setters are optional. $client = Client::create() ->addHeaderItem('User-Agent', 'example') ->setTimeout(10) ->setFollowRedirects(false) ->build(); // Execute request. $response = $client->get('https://api-example.robbyte.net/auth'); // Available methods: // - get // - post // - delete // - head // - patch
Contributing
If you would like to contribute to this project, please fork the repository and create a pull request. We welcome all contributions, including bug fixes, new features, and documentation improvements.
License
This project is licensed under the terms of the MIT license.