App Web Application Basic of Yii Version 2.0. Yii Framework application best for rapidly creating projects with Bootstrap 4.
config/ contains application configurations
docs/ contains documentation application basic
src/ contains source files
tests/ contains tests codeception for the web application
vendor/ contains dependent 3rd-party packages
- The minimum requirement by this project template that your Web server supports:
- PHP 7.2 or higher.
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 terabytesoftw/app-template-basic myapp
Now you should be able to access the application through the following URL, assuming `public` is the directory directly under the Web root.
App Web Application Basic (terabytesoftw/app-basic) is installed automatically together with the Web Project Skeleton Application Basic (terabytesoftw/app-template-basic), both try the necessary packages to start your Web Application Basic in Yii 2.0.
Virtual Host:
http://localhost/
Server Yii:
Directory - [app-template-basic]
php -S 127.0.0.1:8080 -t public > /dev/null 2>&1&
NOTE:
All the configuration is customizable through parameters, there is no need to modify any configuration of Yii 2.0 Web Application Basic, if you need any extra configuration you can open an issue with pleasure we will add it.
Very important when changing any configuration run composer du
, to apply it.
To generate the Yii 2.0 Web Application Basic translations, you can change the language settings in:
config/messages.php - [app-template-basic]:
'languages' => ['en'],
Automatically the generator will create the folder of your language in /messages - [app-template-basic], If any translation is needed, you can open an issue to add it.
root directory - [app-template-basic]:
./vendor/bin/yii message config/messages.php
// download all composer dependencies root project
$ composer update --prefer-dist -vvv
// download & run crhomedriver version chrome desktop
$ wget -P vendor/bin https://chromedriver.storage.googleapis.com/75.0.3770.90/chromedriver_linux64.zip
$ unzip -o -q vendor/bin/chromedriver_linux64.zip
$ vendor/bin/chromedriver --port=9515 --url-base=wd/hub/ > /dev/null 2>&1&
// run web server cli php
$ php -S 127.0.0.1:8080 -t tests/public > /dev/null 2>&1&
// run all tests with code coverage
$ vendor/bin/codecept run --coverage-xml
- Apache.
- Nginx.
- OpenLiteSpeed.