PHPackages                             sematext/stcloud - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. sematext/stcloud

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

sematext/stcloud
================

Sematext Cloud API Client for PHP

v0.5.0(3y ago)12[1 PRs](https://github.com/sematext/sematext-api-client-php/pulls)Apache-2.0PHPPHP &gt;=5.5

Since Jun 29Pushed 1y ago14 watchersCompare

[ Source](https://github.com/sematext/sematext-api-client-php)[ Packagist](https://packagist.org/packages/sematext/stcloud)[ Docs](https://sematext.com)[ RSS](/packages/sematext-stcloud/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (12)Used By (0)

[![](https://camo.githubusercontent.com/e2401005d1459b09ac54c22d01835ec33f4ffe1c845bd35f7f59cfb061c87070/68747470733a2f2f73656d61746578742e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032302f30392f6a7573742d6f6374692d626c75652e706e67)](https://camo.githubusercontent.com/e2401005d1459b09ac54c22d01835ec33f4ffe1c845bd35f7f59cfb061c87070/68747470733a2f2f73656d61746578742e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032302f30392f6a7573742d6f6374692d626c75652e706e67) **sematext-api-client-php**
=====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#sematext-api-client-php)

> *A [Sematext Cloud](https://sematext.com/cloud/) API client, for interaction with Sematext Cloud solution monitoring, alerting and log shipping.*

[![License](https://camo.githubusercontent.com/a549a7a30bacba7bfceebdc207a8e86c3f2c02995a2527640dca30048fd2b64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d417061636865253230322e302d626c75652e737667)](https://opensource.org/licenses/Apache-2.0)

One of a family of clients in following flavours:

- [sematext-api-client-javascript](https://github.com/sematext/sematext-api-client-javascript "Javascript")
- [sematext-api-client-rust](https://github.com/sematext/sematext-api-client-rust "Rust")
- [sematext-api-client-ruby](https://github.com/sematext/sematext-api-client-ruby "Ruby")
- [sematext-api-client-python](https://github.com/sematext/sematext-api-client-python "Python")
- [sematext-api-client-php](https://github.com/sematext/sematext-api-client-php "PHP")
- [sematext-api-client-java](https://github.com/sematext/sematext-api-client-java "Java")
- [sematext-api-client-go](https://github.com/sematext/sematext-api-client-go "Go/Golang")

Refer to below link for deeper information on the API itself.

- [Sematext Cloud API Reference](https://sematext.com/docs/api/ "API Reference")

Contents
--------

[](#contents)

- [![](https://camo.githubusercontent.com/e2401005d1459b09ac54c22d01835ec33f4ffe1c845bd35f7f59cfb061c87070/68747470733a2f2f73656d61746578742e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032302f30392f6a7573742d6f6374692d626c75652e706e67) **sematext-api-client-php**](#sematext-api-client-php)
    - [Contents](#contents)
    - [Getting Started](#getting-started)
    - [Installation](#installation)
        - [Requirements](#requirements)
        - [Composer](#composer)
        - [Manual Installation](#manual-installation)
    - [Testing](#testing)
    - [Getting Started](#getting-started-1)
    - [Authentication](#authentication)
    - [Versioning](#versioning)
    - [License](#license)
    - [Acknowledgements](#acknowledgements)
    - [Reference](#reference)
    - [Documentation For Models](#documentation-for-models)
    - [Documentation For Models](#documentation-for-models-1)
    - [Documentation For Authorization](#documentation-for-authorization)
    - [api\_key](#api_key)

\## Getting Started These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installation
------------

[](#installation)

### Requirements

[](#requirements)

PHP 5.5 and later

### Composer

[](#composer)

To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:

```
{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/sematext/sematext-api-client-php.git"
    }
  ],
  "require": {
    "/sematext/stcloud": "*@dev"
  }
}
```

Then run `composer install`

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
    require_once('/path/to/stcloud/vendor/autoload.php');
```

Testing
-------

[](#testing)

To run the unit tests:

```
composer install
./vendor/bin/phpunit

```

Getting Started
---------------

[](#getting-started)

Please follow the [installation procedure](#installation--usage) and then run the following:

```
