2017 © Pedro PelĂĄez
 

library sonic

SOcial Network InterConnect SDK

image

sgoendoer/sonic

SOcial Network InterConnect SDK

  • Sunday, May 27, 2018
  • by sgoendoer
  • Repository
  • 2 Watchers
  • 1 Stars
  • 123 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 21 Versions
  • 0 % Grown

The README.md

Sonic

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., (*1)

System requirements

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

Changelog

0.5.1

0.5.0

  • 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

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

0.2.5

  • Added feature negotiation functionality
  • Various fixes and improvements

0.2.0

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

0.1.9

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

0.1.0

  • Initial release

Installation

Install via composer with, (*2)

$ composer require sgoendoer/sonic
````

or configure your ```composer.json``` like this:

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

and run, (*3)

$ composer update

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., (*4)

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

Configuration values

name type description default value
timezone String Timezone of the platform "Europe/Berlin"
verbose Integer Level of verbosity in the logs (0: nothing, 5: everything) 0
curlVerbose Integer Level of verbosity for curl requests (0: nothing, 1: everything, 2: also connections to third party services) 0
requestTimeout Integer Timeout for Sonic requests in seconds 10
gslsTimeout Integer Timeout for GSLS requests in seconds 4
logfile String filename to write logs to "sonic.log"
apiPath String Path to the API endpoint "/sonic/"
primaryGSLSNode String IP address of the primary GSLS node "130.149.22.220:4002"
secondaryGSLSNode String IP address of the secondary GSLS node "130.149.22.227:4002"

Initialization

createGETProfile()
                ->dispatch();
    $profile = ProfileObjectBuilder::buildFromJSON($response->getPayload());
    
    echo $profile->getJSONString() . "\n\n";
} catch (\Exception $e) {}
?>

Documentation

Code examples

More examples including explanation of the code can be found here, (*5)

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub, (*6)

The Versions

27/05 2018
19/02 2018

dev-ObjectFactory

dev-ObjectFactory http://sonic-project.net

SOcial Network InterConnect SDK

  Sources   Download

MIT

The Requires

 

social sonic

02/07 2017

dev-profilemodel

dev-profilemodel http://sonic-project.net

SOcial Network InterConnect SDK

  Sources   Download

MIT

The Requires

 

social sonic

26/10 2016

dev-SocialRecord_versions

dev-SocialRecord_versions http://sonic-project.net

SOcial Network InterConnect SDK

  Sources   Download

MIT

The Requires

 

social sonic

26/10 2016
10/05 2016
13/04 2016

dev-development

dev-development

SOcial Network InterConnect SDK

  Sources   Download

MIT

The Requires

 

01/02 2016
29/01 2016
27/01 2016
22/01 2016

0.1.7

0.1.7.0

SOcial Network InterConnect SDK

  Sources   Download

MIT

The Requires

 

21/01 2016

0.1.6

0.1.6.0

SOcial Network InterConnect SDK

  Sources   Download

MIT

The Requires

 

20/01 2016

0.1.5

0.1.5.0

SOcial Network InterConnect SDK

  Sources   Download

TBD

The Requires