roymanoj / yii2-roys-dashboard
Yii 2 Basic Project Template with Adminlte3 + Bootstrap4 + UserInterface
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.6.0
- aws/aws-php-sns-message-validator: ^1.6
- aws/aws-sdk-php: ^3.173
- cache/doctrine-adapter: ^1.1
- hail812/yii2-adminlte3: *
- yiisoft/yii2: ~2.0.14
- yiisoft/yii2-bootstrap: ~2.0.0
- yiisoft/yii2-bootstrap4: ^2.0
- yiisoft/yii2-swiftmailer: ~2.0.0 || ~2.1.0
Requires (Dev)
- codeception/codeception: ^4.0
- codeception/module-asserts: ^1.0.0
- codeception/module-filesystem: ^1.0.0
- codeception/module-yii2: ^1.0.0
- codeception/specify: ~0.4.6
- codeception/verify: ~0.5.0 || ~1.1.0
- symfony/browser-kit: >=2.7 <=4.2.4
- yiisoft/yii2-debug: ~2.1.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.1.0
README
Basic Dashboard with Yii2 & AdminLTE 3 along with User registration and login . Key layout to start any basic application
Installation
composer create-project roymanoj/yii2-roys-dashboard
then run
Composer Install
Setup config/db.php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=roys-dashboard',
'username' => 'root',
'password' => 'tipl',
'charset' => 'utf8',
// Schema cache options (for production environment)
//'enableSchemaCache' => true,
//'schemaCacheDuration' => 60,
//'schemaCache' => 'cache',
];
To migrate database
php yii2 migrate/up
To add Admin Account - On your browser
localhost/yii2-roys-dashboard/app/site/add-admin
Default usenemae : admin Password: admin (You can change it within the dashboard)
for Amzon S3 Credentials (components/Aws.php)
getclient for windows 10
public function getClient() {
$secret='your secret key generated from amazon account';
$key='key value of amazon ';
$s3Client = new S3Client([
// 'profile' => 'default',
'region' => 'ap-south-1',
'version' => 'latest',
'credentials' => [
'key' => $key,
'secret' => $secret,
]
}
getclient for ubuntu / linux
public function getClient() {
$s3Client = new S3Client([
'profile' => 'default',
'region' => 'ap-south-1',
'version' => 'latest',
// make sure your "credentials" files is in the .aws folder under root directory
}