Closed steved1982 closed 8 years ago
Use the fully qualified class name:
$diffbot = new Swader\Diffbot\Diffbot('KEY');
or import it at the top and then use the short form:
use Swader\Diffbot\Diffbot;
$diffbot = new Diffbot('KEY');
Thank you!
I have installed diffbot using composer and it created the autoload files as normal.
My code is simply:
require_once "../../vendor/autoload.php"; $diffbot = new Diffbot('KEY');
BUT I get the error: PHP Fatal error: Class 'Diffbot' not found
I am running PHP Version 5.6.12