Download the PHP package serato/sws-discovery without Composer
On this page you can find all versions of the php package serato/sws-discovery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download serato/sws-discovery
More information about serato/sws-discovery
Files in serato/sws-discovery
Package sws-discovery
Short Description A PHP library for obtaining information about Serato web services.
License
Homepage https://github.com/serato/app-events
Informations about the package sws-discovery
Serato Service Discovery
A PHP library for aiding in the discovery of Serato web applications and services.
Installation
To include this library in a PHP project add the following line to the project's composer.json
file
in the require
section:
See Packagist for a list of all available versions.
Host Names
Serato\ServiceDiscovery\HostName
provides a means of discovery per-environment host names for all Serato websites and applications.
Basic usage
HostName::getSwsHosts
method
The Serato\ServiceDiscovery\HostName::getSwsHosts
method provides a convenient way to fetch an array of host names for all
SWS web services.
The keys of the array are as follows:
- 'profile'
- 'da'
- 'notifications'
- 'id'
- 'license'
- 'ecom'
- 'rewards'
- 'video'
- 'ai-proxy'
- 'cloudlib'
Using Docker to develop this library.
Use the provided docker-compose.yml file to develop this library.
When Docker Compose runs the container it executes docker.sh.
This script installs some required packages, installs Composer and performs a composer install
for this PHP library.
It then opens a bash shell for interacting with the running container.
AWS credentials for integration tests
To run integration tests that interact with AWS services provide an IAM access key and secret via the AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables.