2017 © Pedro Peláez
 

library myaf-net

net

image

cube-group/myaf-net

net

  • Tuesday, June 12, 2018
  • by LincolnBruce
  • Repository
  • 2 Watchers
  • 0 Stars
  • 486 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 2759 % Grown

The README.md

Curl工具类库

Latest Stable Version Total Downloads License, (*1)

常用属性

  • 请求尝试的次数: $curl->try
  • 请求尝试的最大次数: $curl->tryMax
  • 请求耗时(单位:毫秒): $curl->useTime

常规用法

$curl = new LCurl();
$curl->post('http://google.com',['a'=>'1'],['X-Token'=>'test'],15);
$curl->post('http://google.com','<xml><item><a>1</a></item></xml>');
$curl->get('http://google.com');
$curl->get('http://google.com',['a'=>'1']);

设定尝试次数

$curl = new LCurl(['tryMax'=>3]);
$curl->post('http://google.com',['a'=>'1'],['X-Token'=>'test'],15);
echo 'try: '.$curl->try;

钉钉机器人

$ding = new LDing('钉钉群报警机器人地址');
$ding->send('发什么都可以');

The Versions

12/06 2018

dev-master

9999999-dev

net

  Sources   Download

MIT

The Requires

 

by Avatar chenqionghe
by linyang

base

05/06 2018

v0.0.4

0.0.4.0

net

  Sources   Download

MIT

The Requires

 

by Avatar chenqionghe
by linyang

base

31/05 2018

v0.0.3

0.0.3.0

net

  Sources   Download

MIT

The Requires

 

by Avatar chenqionghe
by linyang

base

05/05 2018

v0.0.2

0.0.2.0

net

  Sources   Download

MIT

The Requires

 

by Avatar chenqionghe
by linyang

base

05/05 2018

v0.0.1

0.0.1.0

net

  Sources   Download

MIT

The Requires

 

by Avatar chenqionghe
by linyang

base