I downloaded phpwhois
from here,
and copied it in vendor folder in cakephp
.
But when I load whois
class in controller :
App::import('Vendor', 'phpWhois\Whois', array('file' => 'phpWhois/Whois.php'));
It shows me this error :
Error: Class 'phpWhois\WhoisClient' not found
File: \app\Vendor\phpWhois\Whois.php
Since whois
class extend WhoisClient
.
What should I do?
install using following composer command
Add following line in bootstrap.php
and add this before before controller's class definition