Fork https://github.com/pear/Crypt_Blowfish
$ composer require shimochi/crypt-blowfish
<?php
require __DIR__ . '/../vendor/autoload.php';
$key = 'key';
$text = 'text';
$blowfish =& Crypt\Blowfish::factory('cbc', $key);
$encrypt = $blowfish->encrypt($text);
$decrypt = $blowfish->decrypt($encrypt);
The Crypt Blowfish is open source software licensed under the BSD 2-Clause License.