Console classes for CakePHP 3.x for installing and configuring an applications.
The Hash
class uses the mcrypt_create_iv to generate passwords and salt values.
\Installer\Hash::generate(15);
The Tokens
class lets you replace tokens in the app.php
file with new string values.
$app = \Installer\Tokens::AppConfig();
$app->set('__SALT__', Installer\Hash::create());
$app->set('__DB_NAME__','database');
$app->set('__DB_USER__','username');
$app->set('__DB_PASS__',Installer\Hash::create(16));
$app->save();