Skip to content

PHP client for the CloudForest Marketplace API

Notifications You must be signed in to change notification settings

cloudforestuk/api-client-php

Repository files navigation

api-client-php

PHP client for the CloudForest Marketplace API.

Installation

composer require cloudforest/api-client-php

Update

Fetch recent changes with:

composer require cloudforest/api-client-php

Documentation

The client is documented with phpdoc. To read it, you could read the code in the ./vendors/cloudforest/api-client-php/src folder. Or install phpdoc then extract the documentation to your project with:

phpdoc -d vendor/cloudforest/api-client-php/src -t ./docs

You can then open ./docs/index.html in a browser.

Code Quality

You can run php-cs-fixer and phpstan:

composer run phpcs:check
composer run phpcs:fix
composer run phpstan

Testing

This will run a suite of tests against a CloudForest Marketplace server such as cfdev.cloudforest.marketplace.

Copy phpunit.dist.xml to phpunit.xml and fill in the environment variables. Then run:

composer run phpunit

JSON Schema

You can generate a JSON Schema from the PHP spec classes with:

composer run schema

About

PHP client for the CloudForest Marketplace API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages