php - How to connect to a Redshift database in a Symfony application -


i working on application built using symfony3 needs retrieve data redshift database.

how can go achieving this? appreciate assistance.

you can use bundle awsbundle farhad safarov.

follow the instuctions install , configure bundle application use (example readme.md):

// aws s3 example public function someaction() {     $client = $this->get('aws.s3');      // upload object amazon s3     $result = $client->putobject(array(         'bucket' => $bucket,         'key'    => 'data.txt',         'body'   => 'hello!'     ));     // ... } 

Comments