PHP code example of quioteframework / session-gcs
1. Go to this page and download the library: Download quioteframework/session-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 / session-gcs example snippets
$client = new \Quiote\Storage\Gcs\GcsClient(
httpClient: $psr18Client,
accessKey: getenv('GCS_HMAC_ACCESS_KEY'),
secretKey: getenv('GCS_HMAC_SECRET'),
bucket: 'my-app-sessions',
);
$manager = new \Quiote\Session\SessionManager(
new \Quiote\Storage\Gcs\GcsSessionPersistence($client, objectPrefix: 'sessions/'),
);