monkey92/httpclient

easy for get&post

Maintainers

Package info

github.com/monkey92/httpclient

Type:lib

pkg:composer/monkey92/httpclient

Statistics

Installs: 66

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

v1.1.1 2016-05-16 07:18 UTC

This package is not auto-updated.

Last update: 2026-03-29 02:22:33 UTC


README

download

	composer require monkey92/httpclient

how to use

	use Monkey92\HttpClient;
	$httpUtil = HttpUtil::getInstance();
	//get
	$get_ret = $httpUtil->doGet('http://www.domain.com/user?id=1');
	//post
	$post_ret = $httpUtil->doPost('http://www.domain.com/save_user',['name'=>'Tom','age'=>100]);