Skip to content
This repository was archived by the owner on May 13, 2022. It is now read-only.

davidhirtz/yii2-curl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yii2-curl extension

cURL extension for Yii2 based on Nils Gajsek's curl extension, including RESTful support:

  • POST
  • GET
  • HEAD
  • PUT
  • DELETE

Requirements

  • Yii2
  • PHP 5.4+
  • Curl and php-curl installed

Installation

The preferred way to install this extension is through composer.

php composer.phar require --prefer-dist davidhirtz/yii2-curl "*"

Usage

Once the extension is installed, simply use it in your code. The following example shows you how to handling a simple GET Request.

$curl=new Curl;
$response = $curl->get('http://example.com/');

About

*deprecated* ➰ Yii2 Curl extension based on PHP cURL.

Resources

License

Stars

Watchers

Forks

Languages

  • PHP 100.0%