ensostudio / yii2-app
Yii2 application template
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:project
Requires
- php: >=7.4
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- symfony/polyfill-php74: ^1.25
- symfony/polyfill-php80: ^1.25
- symfony/polyfill-php81: ^1.25
- yiisoft/yii2: ^2.0.45
- yiisoft/yii2-bootstrap5: ^2.0.3
- yiisoft/yii2-symfonymailer: ^2.0.3
Requires (Dev)
- phpunit/phpunit: ^8.5.26
- roave/security-advisories: dev-latest
- yiisoft/yii2-debug: ^2.1.19
- yiisoft/yii2-faker: ^2.0.5
- yiisoft/yii2-gii: ^2.2.4
Suggests
- yiisoft/yii2-authclient: OAuth and OpenId connect consumers
- yiisoft/yii2-httpclient: HTTP client
- yiisoft/yii2-imagine: Imagine image manipulation
- yiisoft/yii2-jui: jQuery UI widgets
- yiisoft/yii2-mongodb: MongoDB integration
- yiisoft/yii2-redis: Redis integration
- yiisoft/yii2-smarty: Smarty view template engine
- yiisoft/yii2-sphinx: Sphinx full text search engine
- yiisoft/yii2-twig: Twig view template engine
This package is auto-updated.
Last update: 2024-10-24 02:28:27 UTC
README
The skeleton of Yii 2 application best for rapidly creating your projects.
The template contains the basic features including user login/logout and a contact page. It includes all commonly used configurations that would allow you to focus on adding new features to your application.
DIRECTORY STRUCTURE
assets
the source scripts, styles and etc.config
the application configurationsmessages
the I18n translationsmigrations
the database migrations (namespaceapp\migrations
)modules
the application modules (namespaceapp\modules
)public
the front-end entry script and assetsbackend
the backend-end entry script and assets
runtime
the cache and logssrc
the PHP sources (classes, interfaces and traits in namespaceapp
)commands
the CLI controllers (running byyii
script)controllers
the Web controllersmodels
the models
tests
the unit testsvendor
the required 3rd-party packagesviews
the views/templatesmails
the e-mail viewslayouts
the page layouts
REQUIREMENTS
The minimum requirement by this project template that your server supports PHP 7.4.
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 ensostudio/yii2-app your-app
Now you should be able to access the application through the following URL, assuming your-app
is the directory
directly under the Web root.
http://localhost/your-app/public/
CONFIGURATION
Database
Edit the file config/db.php
with real data.
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.
TESTING
Tests are located in tests
directory. They are developed with PHPUnit.
Edit the file config/test.php
and tests/bootstrap.php
to configure your test application.
Tests can be executed by running
composer run tests