PHP code example of kinetis / storage-s3
1. Go to this page and download the library: Download kinetis/storage-s3 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/ */
kinetis / storage-s3 example snippets
use Kinetis\Storage\FilesystemFactory;
$storage = FilesystemFactory::fromConfig($config); // FILESYSTEM_DRIVER=s3
$storage->write('avatars/user-42.png', $imageContents);
$contents = $storage->read('avatars/user-42.png');
$storage->delete('avatars/user-42.png');