PHPackages                             sgoendoer/sonic - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sgoendoer/sonic

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sgoendoer/sonic
===============

SOcial Network InterConnect SDK

0.5.1(8y ago)21291[1 PRs](https://github.com/sgoendoer/sonic/pulls)MITPHPPHP ^5.6 || ^7.0

Since Jan 20Pushed 8y ago2 watchersCompare

[ Source](https://github.com/sgoendoer/sonic)[ Packagist](https://packagist.org/packages/sgoendoer/sonic)[ Docs](http://sonic-project.net)[ RSS](/packages/sgoendoer-sonic/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (21)Used By (0)

Sonic
=====

[](#sonic)

### SOcial Network InterConnect

[](#social-network-interconnect)

The Sonic SDK provides a complete toolset to ease the integration of the Sonic protocol into new and existing Online Social Network (OSN) platforms. It is written in PHP 5.6 and is fully compatible with PHP 7.0. The Sonic SDK can be installed via Composer or fetched directly from GitHub.

System requirements
-------------------

[](#system-requirements)

- PHP 5.6+ or PHP 7.0+
- OpenSSL 1.0.0+
- cURL 7.20.0+
- composer

Changelog
---------

[](#changelog)

#### 0.5.1

[](#051)

#### 0.5.0

[](#050)

- Reworked resource migration
- Reworked resource feature
- Reworked resource link
- Renamed resource stream to activity
- Marked resource person deprecated
- Added resource image
- Improvement and fixes

#### 0.3.0

[](#030)

- Added Access Control functionality
- Added code examples
- Various fixes and improvements

#### 0.2.5

[](#025)

- Added feature negotiation functionality
- Various fixes and improvements

#### 0.2.0

[](#020)

- Added migration functionality
- Added search functionality
- Various fixes and improvements

#### 0.1.9

[](#019)

- Added unit tests
- Added logging support
- Code cleanup
- Removed unused classes/functions
- Various fixes and improvements

#### 0.1.0

[](#010)

- Initial release

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

[](#installation)

Install via composer with

```
$ composer require sgoendoer/sonic
```

or configure your `composer.json` like this:

```
"require": {
	"sgoendoer/sonic": "0.5.1"
}
```

and run

```
$ composer update
```

Configuration
-------------

[](#configuration)

For the configuration of the Sonic class, the `sgoendoer\Sonic\Config\Configuration` can be populated with the desired values. Values, which are not set explicitly will stay at their default values.

```
Configuration::setTimezone('Europe/Berlin')
Configuration::setVerbose(1);
```

### Configuration values

[](#configuration-values)

nametypedescriptiondefault valuetimezoneStringTimezone of the platform"Europe/Berlin"verboseIntegerLevel of verbosity in the logs (0: nothing, 5: everything)0curlVerboseIntegerLevel of verbosity for curl requests (0: nothing, 1: everything, 2: also connections to third party services)0requestTimeoutIntegerTimeout for Sonic requests in seconds10gslsTimeoutIntegerTimeout for GSLS requests in seconds4logfileStringfilename to write logs to"sonic.log"apiPathStringPath to the API endpoint"/sonic/"primaryGSLSNodeStringIP address of the primary GSLS node"130.149.22.220:4002"secondaryGSLSNodeStringIP address of the secondary GSLS node"130.149.22.227:4002"Initialization
--------------

[](#initialization)

```
