Download the PHP package muvo/yii2-boilerplate without Composer
On this page you can find all versions of the php package muvo/yii2-boilerplate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-boilerplate
Yii2 boilerplate
Prerequisites
- PHP >=7
- composer installed
Installation
- Run:
PROFIT!
You can continue to make your best Yii2-application! :)
Some additional notices about files and directories
.env: In this file you can predefine environment variables for application in formatKEY="SOME VALUE"(per one key-value pair in string)-
app/themes: In this directory you can place your application's themes (assets, views, layouts, …) For example, I recommend following structure:app/themes/admin/assets: put in this direcory all required assets for your application, like js, css, etc…- Add your own asset-bundle:
- Create file
app/themes/admin/AssetBundle.php. That class-file extends ayii\web\AssetBundle - In this class you should define a
$sourcePath = '@app/themes/admin/assets' - Define a your theme-specific
$jsand$cssproperties - Then you can register your asset-bundle in view/layout, like
`. When your asset-bundle registers in a view, application will **automatically** publish contents ofapp/themes/admin/assets-directory in public@webroot` and injects JS and CSS scripts in your view(layout)- Create directory for layouts and views:
app/themes/admin/views/layouts - Look more information about Yii theming
app\models: Put there your data-models, for example ActiveRecord models for interact with databaseapp\modules: There you can place your separate Yii-modules, like user's panel, admin's panel, etc…lib: This is arbitrary directory for development separate custom components. Classes to be placed there must be in namespaceMuVO\Yii2. For example, if I want to createConnectorforSomeComponent, I should:
- Create directory for layouts and views:
- Create file
lib/SomeComponent/Connector.phpwith following content:
- Create file
- Now you can call this
Connectorin your project like this:
Credits
If you have a questions or need an advice, you always can contact me. For example, via Telegram
All versions of yii2-boilerplate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
vlucas/phpdotenv Version *
yiisoft/yii2 Version ~2.0.13
yiisoft/yii2-bootstrap Version *
yiisoft/yii2-swiftmailer Version *
guzzlehttp/guzzle Version ~6.0
ramsey/uuid Version *
vlucas/phpdotenv Version *
yiisoft/yii2 Version ~2.0.13
yiisoft/yii2-bootstrap Version *
yiisoft/yii2-swiftmailer Version *
guzzlehttp/guzzle Version ~6.0
ramsey/uuid Version *
The package muvo/yii2-boilerplate contains the following files
Loading the files please wait ...