Skip to content

Lightweight and modern PHP client for making HTTP requests

License

Notifications You must be signed in to change notification settings

rdurica/restnova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

54d6f28 · Apr 22, 2024

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTnova

PHP GitHub

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.

About

Lightweight and modern PHP client for making HTTP requests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages