interaapps/httprequest

There is no license information available for the latest version (1.0) of this package.

1.0 2020-07-12 20:27 UTC

This package is not auto-updated.

Last update: 2024-05-14 12:31:15 UTC


README

Features:

  • Very Simple
  • Pattern Builder (Returns always this except for send and getters)
use modules\httprequest\HttpRequest;

// Simple get
$res = HttpRequest::get("https://interaapps.de")->send();

$res->getData(); // Gets the body
$res->getCode(); // Gets the httpcode
// ...

// POST-Request
$res = HttpRequest::post("https://interaapps.de")
        ->parameter("username", "homer.simpson")
        ->parameter("username", "ilovedonuts")
        ->send();