PHP code example of quioteframework / filesystem-gcs
1. Go to this page and download the library: Download quioteframework/filesystem-gcs 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/ */
quioteframework / filesystem-gcs example snippets
$client = new \Quiote\Storage\Gcs\GcsClient(
httpClient: $psr18Client,
accessKey: getenv('GCS_HMAC_ACCESS_KEY'),
secretKey: getenv('GCS_HMAC_SECRET_KEY'),
bucket: 'my-app-files',
);
$adapter = new \Quiote\Filesystem\Gcs\GcsFilesystemAdapter($client);
$adapter->write('reports/q1.csv', $csv);
$adapter->read('reports/q1.csv');