tanchengjin / curl
php curl operation
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/tanchengjin/curl
Requires
- php: >=5.6
- ext-curl: *
This package is auto-updated.
Last update: 2025-09-16 18:00:35 UTC
README
install 安装
composer
composer require tanchengjin/curl
using 使用
TanChengjin\Curl\Curl::request($url, $https = false, $post = false, array $data = []);
chain 链式方法
$curl=new TanChengjin\Curl\Curl();
#get
$curl->setUrl(url)->setHttps()->get();
or
$curl->get(url,$https=true);
#post
$curl->setUrl(url)->setHttps()->post();
or
$curl->post(url,true,[postData]);