1. Go to this page and download the library: Download adbario/php-encrypter 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/ */
adbario / php-encrypter example snippets
$key = '+NeXrQhAEhW}g8gf^y)Up8hAUKpue7wb';
$encrypter = new \Adbar\Encrypter($key);
$encrypter = new \Adbar\Encrypter($key, $authKey);
$string = 'This is my string to encrypt.';
$encrypted = $encrypter->encryptString($string);