PHP client API generator for OWASP ZAP
-
Preparing the zaproxy repository in your local environment.
- Git clone a repository from zaproxy/zaproxy: The OWASP ZAP core project.
- Ref. Building · zaproxy/zaproxy Wiki
-
Copy & paste PhpAPIGenerator.java to zaproxy project
src
directory.$ cp ./src/org/zaproxy/zap/extensions/api/PhpAPIGenerator.java your/zaproxy/src/org/zaproxy/zap/extensions/api/
-
Copy & paste Zapv2.php to zaproxy project
php/api/src/Zap
directory.$ mkdir -p your/zaproxy/php/api/src/Zap $ cp php/api/src/Zap/Zapv2.php your/zaproxy/php/api/src/Zap/
-
Right click zaproxy project and select 'Refresh' (in Eclipse).
-
Right click zaproxy project and select 'Build Project' (in Eclipse).
-
Create PHP client API files.
$ cd your/zaproxy/build $ ant generate-apis
This process needs
your/zaproxy/bin/org/src/zaproxy/zap/extension/api/PhpAPIGenerator.class
file. -
PHP client API files have been created in
your/zaproxy/php/api/src/Zap/
- Apache License, Version 2.0