Skip to content

monkey92/httpclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

php 使用curl扩展实现http请求

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]);
	

About

httpclient for get&post

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages