php-curl-class icon indicating copy to clipboard operation
php-curl-class copied to clipboard

Add namespace support

Open zachborboa opened this issue 12 years ago • 3 comments

zachborboa avatar Mar 17 '14 05:03 zachborboa

Yes please. When using in a namespace manner, the instantiation of the Curl class returns nothing.

leeuweriq avatar May 21 '14 16:05 leeuweriq

Possible implementation and usage.

<?php
namespace Curl;

class Curl
{
}
<?php
use \Curl\Curl;

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

zborboa-g avatar May 21 '14 21:05 zborboa-g

Fixed in 360058c529c9a936eb71939e7c5268ddd3ecad72.

zachborboa avatar May 23 '14 04:05 zachborboa