monkey92/httpclient

easy for get&post

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

This package is not auto-updated.

Last update: 2024-12-21 19:26:31 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]);