1. Go to this page and download the library: Download sop/gcm 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/ */
sop / gcm example snippets
[$ciphertext, $auth_tag] = AESGCM::encrypt(
'Meet me at the pier at midnight.',
'Additional info', 'some 128 bit key', 'random iv-string');
echo bin2hex($ciphertext) . "\n" . bin2hex($auth_tag);