upmind/enhance-sdk

Enhance.com PHP SDK automatically generated from the Enhance OpenAPI spec using OpenAPI Generator

v10.0.0 2023-12-19 14:47 UTC

This package is auto-updated.

Last update: 2024-10-25 15:33:40 UTC


README

Latest Version on Packagist

Enhance.com PHP SDK automatically generated from the Enhance OpenAPI spec using OpenAPI Generator v6.2.0.

This package's versioning corresponds to the version of the Enhance orchd OpenAPI spec used to generate the SDK.

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.

Composer

To install the package via Composer, run the following install command:

composer require upmind/enhance-sdk

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/upmind/enhance-sdk/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');




$apiInstance = new Upmind\EnhanceSdk\Api\AppsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$org_id = 'org_id_example'; // string | The id of the organization.
$website_id = 'website_id_example'; // string | The id of the website.
$new_website_app = new \Upmind\EnhanceSdk\Model\NewWebsiteApp(); // \Upmind\EnhanceSdk\Model\NewWebsiteApp

try {
    $result = $apiInstance->createWebsiteApp($org_id, $website_id, $new_website_app);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppsApi->createWebsiteApp: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to http://localhost

Models

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version corresponds to SDK package version
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

License

Apache License 2.0 (Apache-2.0). Please see License File for more information.

Upmind

Sell, manage and support web hosting, domain names, ssl certificates, website builders and more with Upmind.com - the ultimate web hosting billing and management solution.