MDS Symfony Client Library
Install PHP and PECL on Ubuntu/Debian:
For PHP5:
$ sudo apt-get install php5 php5-dev php-pearFor PHP7:
$ sudo apt-get install php7.0 php7.0-dev php-pearInstall the gRPC PHP extension
sudo pecl install grpcUpdate php.ini
Add this line to your php.ini file
extension=grpc.soAdd gRPC & MdsBundle PHP library as a Composer dependency
You need to add this to your project's composer.json file.
{
"require": {
"practo/mds-bundle": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/practo/MdsBundle.git"
}
]
}Update Vendors using composer
composer updateConfigure MDS Client via parameters.yml
To set connection parameters you can add following properties in your application's parameter.yml
mds:
source: 'source name provided for your app by mds'
secret: 'secret key provided for your app by mds'
base_uri: 'mds host name and port, usually this is http://localhost:50051'