Im trying to get OWASP Zap to work with my laravel platform. A LONG way to go, but right now im just trying to get a connection between laravel and Zap.
So using the PHP wrapper, its pulled into Vendor\Zaproxy\phpOwaspZapV2\Src\Zap\Zapv2 in my laravel installation. NOTE: Mapfolder structure changed a bit from original.
Using the documentation on said wrapper page, im trying to get the class, using
$zap = new \Vendor\Zaproxy\phpOwaspZapV2\Src\Zap\Zapv2('google.com');
When doing this, I just get
Class 'Vendor\Zaproxy\PhpOwaspZapV2\Src\Zap\Zapv2' not found
My laravel folder structure:
vendor/zaproxy/phpOwaspZapV2/src/Zap
Within this folder, there are 22 files. Main file is Zapv2.php
Start of Zapv2.php
:
namespace Zap;
use Zap\Acsrf;
...
class ZapError extends \Exception {
public function __toString() {
return __CLASS__ . ": [{$this->code}]: {$this->message}
";
}
}
/**
* Client API implementation for integrating with ZAP v2.
*/
class Zapv2 {
// base JSON api url
public $base = 'http://zap/JSON/';
// base OTHER api url
public $base_other = 'http://zap/OTHER/';
.....
Im sure there is a lot im doing wrong here, so just hoping for some pointers.
My question: Why is the class not being recognized in laravel, when the folder structure is correct in the code, and Zapv2
is a class
in Zapv2.php
?