PHP code example of jplarar / s3-bundle

1. Go to this page and download the library: Download jplarar/s3-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jplarar / s3-bundle example snippets

 bash
$ php composer.phar update "jplarar/s3-bundle"
 php

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Jplarar\S3Bundle\JplararS3Bundle()
    );
}
 php

        $s3Client = $this->get('amazon_s3_client');
 php
 
    $s3Client->write($key, $content, $mimeType);