yadakhov/curl

A simple php curl wrapper class.

Installs: 329

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/yadakhov/curl

v1.1.0 2021-04-30 18:33 UTC

This package is auto-updated.

Last update: 2025-09-29 01:55:37 UTC


README

A simple curl wrapper class to perform GET and POST.

Installation

Install from packagist

composer require yadakhov/curl

Or add to your composer.json

    "require": {
        "yadakhov/laradump": "^1.0"
    },

The api interface.

public static getInstance();
public function get($url, array $params = []);
public function post($url, array $params = []);

Perform a GET request

$curl = new \Yadakhov\Curl;
$curl->get('http://example.com');

Perform a POST request

$response = Curl::getInstance()->post('http://example.com', ['id' => '1']);