2017 © Pedro Peláez
 

symfony-bundle php_curl

php curl class

image

yakeing/php_curl

php curl class

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Curl

Curl is an open source file transfer tool that uses URL syntax to work on the command line, where the basic functions of curl are encapsulated, such as COOKIES / encrypted transport / HTTP authentication / analog forms / upload files, etc., (*1)

Travis CI badge

Travis-ci, (*2)

codecov badge

codecov, (*3)

Github badge

Downloads Size tag license languages, (*4)

Installation

Use Composer to install the library. Of course, You can go to Packagist to view., (*5)


   $ composer require yakeing/php_curl

init

  • [x] example
    $Curl = new curl();
    $curl->Encoding = 'gzip';
    $Curl->Timeout = 10;

GET

  • [x] example
      $Url = 'https://github.com/yakeing';
      $Header = array(
        'User-Agent: Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.28'
      );
      $Curl->Get($Url, $Header);

POST

  • [x] example
      $Url = 'https://github.com/yakeing';
      $Vars = array(
        'user'=>'admin',
        'upload'=>new CURLFile(realpath('image.jpg')) //php 5.5 Edition
        );
      $curl->UserAgent = 'Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.28';
      $Curl->Post($Url, $Vars, $Header);

Sponsor

If you've got value from any of the content which I have created, then I would very much appreciate your support by payment donate., (*6)

Sponsor, (*7)

Author

weibo: yakeing, (*8)

twitter: yakeing, (*9)

The Versions

26/05 2018

dev-master

9999999-dev https://github.com/yakeing/php_curl

php curl class

  Sources   Download

MPL-2.0

The Requires

  • php >=5.6
  • ext-curl *

 

The Development Requires

curl http post get

30/08 2017

v2.2.0

2.2.0.0 https://github.com/yakeing/php_curl

php curl class

  Sources   Download

MPL-2.0

The Requires

  • php >=5.6
  • ext-curl *

 

The Development Requires

curl http post get

17/08 2017

v2.1.0

2.1.0.0 https://github.com/yakeing/php_curl

php curl class

  Sources   Download

MPL-2.0

The Requires

  • php >=5.6
  • ext-curl *

 

The Development Requires

curl http post get