Download the PHP package valencio/laravel-toolkit without Composer
On this page you can find all versions of the php package valencio/laravel-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download valencio/laravel-toolkit
More information about valencio/laravel-toolkit
Files in valencio/laravel-toolkit
Download valencio/laravel-toolkit
More information about valencio/laravel-toolkit
Files in valencio/laravel-toolkit
Vendor valencio
Package laravel-toolkit
Short Description A modern Laravel toolkit for reusable development utilities and components.
License MIT
Package laravel-toolkit
Short Description A modern Laravel toolkit for reusable development utilities and components.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-toolkit
Laravel Toolkit
Laravel 13 可复用工具包。当前提供第三方集成 HTTP 客户端基类:固定发送、HTTP 校验与安全日志流程,具体服务继承后只写自己的配置和业务方法。
Integration HTTP
调用方决定策略:
约定
send()/get()/post()返回IntegrationResult,失败默认不抛sendOrFail()/getOrFail()/postOrFail()失败抛IntegrationException- HTTP 2xx 由基类
send()固定检查,子类validateResponse()只做业务码/结构 options使用 Laravel 原生格式:query、json、form_params、multipart- 失败类型:
connection/http/business/invalid_response - 失败日志只由基类记一次;日志故障不覆盖调用结果
- 地址、密钥不进包配置,由具体服务配置管理;构造时校验必填
- 软/硬失败策略由调用方决定
日志策略
- URI query、请求选项、JSON 响应按
sensitive_keys脱敏后再截断 sensitive_keys整表替换;追加用sensitive_keys_extra- 日志尽量带上最终请求快照(含
configureRequest合并的 query)与provider_code - 不可回退的响应流不读正文;可读流读完后恢复游标
- 一个第三方一个 channel,不要共用一个大文件
要求
- PHP
^8.4 - Laravel
^13.0
安装
测试
All versions of laravel-toolkit with dependencies
PHP Build Version
Package Version
The package valencio/laravel-toolkit contains the following files
Loading the files please wait ...