pde159 / yii2-starter-bs4
Yii 2 Basic Project with Adminlte 3 and Bootstrap 4
Installs: 57
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=7.2.0
- 2amigos/2fa-library: dev-master
- 2amigos/qrcode-library: dev-master
- kartik-v/yii2-bootstrap4-dropdown: @dev
- kartik-v/yii2-detail-view: dev-master
- kartik-v/yii2-grid: dev-master
- kartik-v/yii2-icons: ~1.0
- kartik-v/yii2-widgets: dev-master
- npm-asset/admin-lte: ^3.0
- pde159/yii2-usuario: dev-master
- yiisoft/yii2: ~2.0.16
- yiisoft/yii2-authclient: ^2.1
- yiisoft/yii2-bootstrap4: ~2.0.0
- yiisoft/yii2-httpclient: ^2.0
- yiisoft/yii2-swiftmailer: ~2.0.0
Requires (Dev)
- codeception/base: ~2.3.0
- codeception/specify: ~0.4.6
- codeception/verify: ~0.4.0
- yiisoft/yii2-debug: ~2.0.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.0.0
This package is auto-updated.
Last update: 2025-02-19 11:36:02 UTC
README
Yii 2 Basic Project with Adminlte 3 and Bootstrap 4
based on Yii 2 Basic Project Template is a skeleton Yii 2 application best for rapidly creating small projects.
The template contains the following features:
- bootstrap 4
- adminlte 3.0
- fontawesome 5
- yii2-usuario forked with bs4 compatibility
- kartik widgets
DIRECTORY STRUCTURE
assets/ contains assets definition
commands/ contains console commands (controllers)
config/ contains application configurations
controllers/ contains Web controller classes
mail/ contains view files for e-mails
models/ contains model classes
runtime/ contains files generated during runtime
tests/ contains various tests for the basic application
vendor/ contains dependent 3rd-party packages
views/ contains view files for the Web application
web/ contains the entry script and Web resources
REQUIREMENTS
The minimum requirement by this project template that your Web server supports PHP >= 7.
INSTALLATION
Install via Composer
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this project template using the following command:
composer create-project --prefer-dist --stability=dev pde159/yii2-starter-bs4 myapp
Now you should be able to access the application through the following URL, assuming myapp
is the directory directly under the Web root.
http://localhost/myapp/web/
CONFIGURATION
Database
Edit the file config/db.php
with real data, for example:
return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=yii2db', 'username' => 'root', 'password' => '1234', 'charset' => 'utf8', ];
Execute the migration:
php yii migrate
NOTES:
- Yii won't create the database for you, this has to be done manually before you can access it.
- Check and edit the other files in the
config/
directory to customize your application as required. - Refer to the README in the
tests
directory for information specific to basic application tests.
BEGIN
Create an admin with full right role
php yii user/create admin@app.fr admin azerty administrators