承接 rdurica/restnova 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rdurica/restnova

Composer 安装命令:

composer require 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.

README 文档

README

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.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-18