Wrapper around OpenSSL encryption in PHP. Another breakout from my custom framework.
Use composer
composer require salernolabs/slzcrypt
Instantiate a class with a key and encrypt or decrypt data.
$crypt = new \SalernoLabs\Slzcrypt\Crypt($key);
$encrypted = $crypt->encrypt($input);
$decrypted = $crypt->decrypt($encrypted);