承接 derilkillms/request 相关项目开发

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

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

derilkillms/request

最新稳定版本:v1.0.1

Composer 安装命令:

composer require derilkillms/request

包简介

Simple secure request wrapper for PHP

README 文档

README

Instalation

composer require derilkillms/request

Information

Request methods : (wikipedia) HTTP defines methods (sometimes referred to as verbs, but nowhere in the specification does it mention verb) to indicate the desired action to be performed on the identified resource. What this resource represents, whether pre-existing data or data that is generated dynamically, depends on the implementation of the server. Often, the resource corresponds to a file or the output of an executable residing on the server. The HTTP/1.0 specification[49] defined the GET, HEAD, and POST methods as well as listing the PUT, DELETE, LINK and UNLINK methods under additional methods. However, the HTTP/1.1 specification[50] formally defined and added five new methods: PUT, DELETE, CONNECT, OPTIONS, and TRACE. Any client can use any method and the server can be configured to support any combination of methods. If a method is unknown to an intermediate, it will be treated as an unsafe and non-idempotent method. There is no limit to the number of methods that can be defined, which allows for future methods to be specified without breaking existing infrastructure. For example, WebDAV defined seven new methods and RFC 5789 specified the PATCH method..

....

This Repository Based : PHP

require __DIR__ . '/vendor/autoload.php';

use Derilkillms\Http\Request;

session_start();
$request = new Request();

// Cek method
echo $request->method(); // ex: POST

// GET
$id = $request->get('id');

// POST
$username = $request->post('username');

// PUT
$payload = $request->put();

// PATCH
$title = $request->patch('title');

// DELETE
$itemId = $request->delete('id');

// SESSION
$request->setSession('user_id', 42);
echo $request->session('user_id');

// Ambil semua data sesuai method aktif
$data = $request->all();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-29