To install (download and unpack zip) with PHP from http://windows.php.net/download#php-7.2 e.g. VC15 x64 Non Thread Safe (2018-Jan-31 23:18:33)
- Unpack zip to
c:\php\
- Rename
c:\php\php.ini-development
toc:\php\php.ini
- Open
c:\php\php.ini
and enable next extensions (remove;
before each line)extension=curl
extension=mbstring
extension=openssl
- Add
c:\php\
to your path
I prefer Visual Studio Code with PHP Debug
extension but you can use any editor or IDE which supports PHP.
Extensions:
- PHP Debug - follow the instructions at the extension page to setup debugging
Codegen tool can be downloaded here: https://drive.google.com/open?id=1Lnys_JfdCQ7ih4gECQx6anU7yI1JsDS6
- Open
\SDKs\codegen\Templates\php\
and replaceViewer
with your product name - Open
\SDKs\codegen\generate-php-sdk.bat
and replaceViewer
with your product name - Open
\SDKs\codegen\config-php.json
and replaceViewer
with your product name
Replace spec file in SDKs\spec\
with your.
Make sure you have similar data in your spe file
"info": {
"title": "GroupDocs.Viewer for Cloud API",
"version": "18.2"
},
"host": "api.groupdocs.cloud",
"basePath": "/v1",
"schemes": [
"https"
],
Execute SDKs\codegen\generate-php-sdk.bat
from the root directory and check results in the SDKs\PHP
directory.
Navigate into SDKs\PHP
directory and execute folliwing commands:
php composer.phar install
to install dependenciesvendor\bin\phpunit
to run unit tests