src/Components/S3FileSystem.php
public function getBlobAsFile($container = '', $name = '', $localFileName = '')
    {
        try {
            $this->checkConnection();

            $options = [
                'Bucket' => $container,
                'Key'    => $name,
                'SaveAs' => $localFileName
            ];

            $this->blobConn->getObject($options);
        } catch (\Exception $ex) {
            throw new DfException('Failed to retrieve blob "' . $name . '": ' . $ex->getMessage());
        }
    }
public function getBlobAsFile($container = '', $name = '', $localFileName = '')
    {
        try {
            $this->checkConnection();

            $options = [
                'Bucket' => $container,
                'Key'    => $name,
                'SaveAs' => $localFileName
            ];

            $this->blobConn->getObject($options);
        } catch (\Exception $ex) {
            throw new DfException('Failed to retrieve blob "' . $name . '": ' . $ex->getMessage());
        }
    }
Get blob

@param  string $container     Container name
@param  string $name          Blob name
@param  string $localFileName Local file name to store downloaded blob

@throws DfException