src/FACTFinder/Util/CurlStub.php
public function init($url = null)
    {
        $ch = ++$this->lastHandle;

        $handle = FF::getInstance('Util\CurlHandle');

        $handle->options[CURLOPT_RETURNTRANSFER] = false;

        $this->handles[$ch] = $handle;

        if($url !== null)
            $this->setopt($ch, CURLOPT_URL, $url);

        return $ch;
    }
public function init($url = null)
    {
        $ch = ++$this->lastHandle;

        $handle = FF::getInstance('Util\CurlHandle');

        $handle->options[CURLOPT_RETURNTRANSFER] = false;

        $this->handles[$ch] = $handle;

        if($url !== null)
            $this->setopt($ch, CURLOPT_URL, $url);

        return $ch;
    }
Easy interface