Skip to content

LibHttp

ImperaZim edited this page Jun 28, 2026 · 1 revision

LibHttp

LibHttp is the official HTTP helper library for EasyLibrary 3.x.

Identity

Field Value
Package id libhttp
Plugin name LibHttp
Namespace imperazim\http
Type classpath package
Repository https://github.com/ImperaZim/LibHttp

What It Provides

  • immutable HTTP request and response objects;
  • cURL transport with PHP stream fallback;
  • retry policies for transient network/status failures;
  • JSON request and response helpers;
  • atomic downloads with optional max-size and SHA-256 checks;
  • generic webhook helpers and Discord webhook payload builders;
  • PMMP async task adapter for request callbacks.

Install As Package

/easylibrary packages install libhttp development confirm

Restart, then validate:

/easylibrary packages status libhttp
/elprobe libhttp
/elprobe run libhttp

Install As Standalone

Download LibHttp-1.0.0-dev.phar from the GitHub Release and place it under plugins/, then restart the server.

Notes

LibHttp replaces the old idea of keeping HTTP/download/webhook helpers inside the EasyLibrary core. The core can still perform its own private package downloads, but public plugin-facing HTTP helpers belong here.

Clone this wiki locally