New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

webman-tech/laravel-http

Webman plugin webman-tech/laravel-http
1,236 1
Install
composer require webman-tech/laravel-http
Latest Version:v12.0.14
PHP:^8.2
Laravel:12
Older releases:11
License:MIT
Last Updated:Oct 12, 2026
Links: GitHub  ·  Packagist
Maintainer: kriss

webman-tech/laravel-http

Split from webman-tech/laravel-monorepo

适用于 webman 的 Laravel HTTP 组件,基于 illuminate/http 实现。

安装

composer require webman-tech/laravel-http

简介

该组件将 Laravel 强大的 HTTP 功能引入 webman 框架中,包括 HTTP 客户端、Request 对象和上传文件处理。

所有方法和配置与 Laravel 几乎一致,因此使用方式可完全参考 Laravel HTTP Client 文档 和 Laravel Requests 文档。

特殊使用说明

1. Facades 使用方式

  • 使用 WebmanTech\LaravelHttp\Facades\Http 替代 Illuminate\Support\Facades\Http
  • 使用 WebmanTech\LaravelHttp\Facades\LaravelRequest 替代 Illuminate\Support\Facades\Request
  • 使用 WebmanTech\LaravelHttp\Facades\LaravelUploadedFile 来快速包装 Webman\UploadedFile 为 Illuminate\Http\UploadedFile

2. 文件上传处理

use WebmanTech\LaravelHttp\Facades\LaravelUploadedFile;

// 包装 Webman 上传文件为 Laravel UploadedFile
$uploadedFile = LaravelUploadedFile::wrapper($request->file('avatar'));
// 现在可以使用 Laravel 的所有文件操作方法
$path = $uploadedFile->store('avatars');

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

610,364,751 34,988
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

412,228,818 4,664

Version History

Version Released PHP Laravel License
v12.0.14 ^8.2 ^12.0 MIT
v12.0.13 ^8.2 ^12.0 MIT
v12.0.12 ^8.2 ^12.0 MIT
v12.0.11 ^8.2 ^12.0 MIT
v12.0.10 ^8.2 ^12.0 MIT