<commit_before># Steein SDK for PHP

***Welcome to Steein PHP SDK.*** This repository contains Steein's PHP SDK and samples for REST API.



## Installation

The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.
Once composer is installed, execute the following command in your project root to install this library:

```
composer require steein/steein-sdk
```
Finally, be sure to include the autoloader:

```php
require_once '/path/to/your-project/vendor/autoload.php';
```


## SDK Documentation

 * [Documentation](https://www.steein.ru/developers/docs/steein-api.overview)
 * [API Reference](https://www.steein.ru/developers/docs/api-reference.common-objects)
 * [Samples](https://github.com/SteeinRu/steein-api-samples)
 * [Installation](https://www.steein.ru/developers/docs/sdk-quickstart-guide.install)
 * [Make your First SDK Call](https://www.steein.ru/developers/docs/steein-api.make-your-first-call)

## Usage

Simple GET example of a user's account.

### Version 1

***sdk-config.ini***

```ini
[Account]
acct1.ClientId = {id}
acct1.ClientSecret = {secret_key}
acct1.VersionApi = v2.0
```
*** index.php ***
```php
define('STEEIN_CONFIG_PATH', __DIR__);
$steein = new Steein();
```

### Version 2

```php<commit_msg>Updating of documentation<commit_after># Steein SDK for PHP

***Welcome to Steein PHP SDK.*** This repository contains Steein's PHP SDK and samples for REST API.



## Installation

The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.
Once composer is installed, execute the following command in your project root to install this library:

```
composer require steein/steein-sdk
```
Finally, be sure to include the autoloader:

```php
require_once '/path/to/your-project/vendor/autoload.php';
```


## SDK Documentation

 * [Documentation](https://www.steein.ru/developers/docs/steein-api.overview)
 * [API Reference](https://www.steein.ru/developers/docs/api-reference.common-objects)
 * [Samples](https://github.com/SteeinRu/steein-api-samples)
 * [Installation](https://www.steein.ru/developers/docs/sdk-quickstart-guide.install)
 * [Make your First SDK Call](https://www.steein.ru/developers/docs/steein-api.make-your-first-call)

## Usage

Simple GET example of a user's account.

### Version 1

***sdk-config.ini***

```ini
[Account]
acct1.ClientId = {id}
acct1.ClientSecret = {secret_key}
acct1.VersionApi = v2.0
```

***index.php***
```php
define('STEEIN_CONFIG_PATH', __DIR__);
$steein = new Steein();
```

### Version 2

```php
{'fraction_non_alphanumeric': 0.1453287197231834, 'fraction_numerical': 0.005382545174932718, 'mean_word_length': 4.86036036036036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1478394', 'n_tokens_mistral': 909, 'n_tokens_neox': 850, 'n_words': 221}