textcontrol / txtextcontrol-reportingcloud
PHP SDK for ReportingCloud Web API. Authored and supported by Text Control GmbH.
Installs: 128 415
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 9
Open Issues: 0
Requires
- php: ^8.0
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ctw/ctw-http: ^3.0
- guzzlehttp/guzzle: ^7.0
- psr/container: ^1.0 || ^2.0
Requires (Dev)
- fakerphp/faker: ^1.14
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.7
- phpstan/phpstan-strict-rules: ^1.3
- phpunit/phpunit: ^9.5
- riimu/kit-phpencoder: ^2.4
- smalot/pdfparser: ^0.14
- squizlabs/php_codesniffer: ^3.6
- symfony/var-dumper: ^6.0
- dev-master
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.0
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.9.1
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.4
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
This package is auto-updated.
Last update: 2023-09-10 06:04:34 UTC
README
Abandoned Package -- Migrate Now!
As of September 10, 2023, this package is no longer being maintained.
Please update to the new version at https://github.com/TextControl/textcontrol-reportingcloud.
⚠️ Be sure to review the CHANGELOG.md
of the new package.
ReportingCloud PHP SDK
This is the official PHP SDK for the ReportingCloud Web API. It is authored and supported by Text Control GmbH.
Learn more about ReportingCloud at:
Learn more about ReportingCloud PHP SDK at:
Minimum Requirements
Since ReportingCloud PHP SDK 3.0, the PHP SDK requires PHP 7.4 or PHP 8.0.
All versions of PHPs prior to 7.3 have reached end-of-life and consequently, no further security updates will be released for them. If your application is running in an older environment, it is highly advisable to update to a more current version of PHP.
If you are unable or unwilling to update your PHP installation, you may consider using ReportingCloud PHP SDK 2.0, which supports PHP 7.1, or ReportingCloud PHP SDK 1.0, which supports PHP 5.6.
Please note, however, these versions are no longer maintained.
Alternatively, it is possible to use ReportingCloud by directly accessing the Web API. In such cases, it is advisable to use the curl extension to make the API calls.
Install Using Composer
Install ReportingCloud PHP SDK 3.0 in your project using Composer:
composer require textcontrol/txtextcontrol-reportingcloud:^3.0
After installing, you just need to include Composer's autoloader:
include_once 'vendor/autoload.php';
You are now ready to use the SDK.
API Key for Demos and Unit Tests
ReportingCloud PHP SDK ships with a number of sample applications (see directory /demo
) and phpunit tests (see directory /test
). The scripts in each of these directories require an API key for ReportingCloud in order to be executed. So that the API key is not made inadvertently publicly available via a public GIT repository, you will first need to specify it. There are two ways in which you can do this:
Using PHP Constants:
define('REPORTING_CLOUD_API_KEY', 'your-api-key');
Using Environmental Variables (For Example in .bashrc
)
export REPORTING_CLOUD_API_KEY='your-api-key'
Note, these instructions apply only to the demo scripts and phpunit tests. When you use ReportingCloud in your application, set the API key in your constructor or by using the setApiKey($apiKey)
methods. For an example, see /demo/instantiation.php
.
Getting Started
The PHP Quickstart Tutorial in the ReportingCloud documentation is your starting point to using ReportingCloud PHP SDK in your own applications.
In addition, ReportingCloud PHP SDK ships with a number of sample applications (see directory /demo
). These samples applications, which are well commented, have been written to demonstrate all parts of ReportingCloud.
Getting Support
The ReportingCloud PHP SDK is authored and supported by Text Control GmbH, the manufacturer of the ReportingCloud Web API.
Despite our best efforts to create understandable documentation, demo applications and unit tests, we understand that there are times when you may need some technical assistance.
If you have a question about ReportingCloud or the PHP SDK, we want to help you.
Please refer to the Getting Support section of the ReportingCloud documentation to learn more about the support channels at your disposition.