thinkingmedia / cakephp-installer
CakePHP 3.0 console classes for installing and configuring an application.
dev-master
2015-04-17 00:18 UTC
Requires
- react/promise: ~2.2
- thinkingmedia/underscore: ~1.0
This package is not auto-updated.
Last update: 2024-10-26 18:43:26 UTC
README
Console classes for CakePHP 3.x for installing and configuring an applications.
Hash
The Hash
class uses the mcrypt_create_iv to generate passwords and salt values.
\Installer\Hash::generate(15);
Tokens
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();