yii2-extensions / app-basic
Web Application Basic
Installs: 308
Dependents: 1
Suggesters: 0
Security: 0
Stars: 10
Watchers: 2
Forks: 1
Open Issues: 5
Type:project
Requires
- php: >=8.1
- npm-asset/flag-icons: ^7.1
- npm-asset/fortawesome--fontawesome-free: ^6.5
- sjaakp/yii2-icon: ^1.0
- ui-awesome/html: ^0.3
- ui-awesome/html-component-bootstrap5: ^1.0@dev
- ui-awesome/html-core: ^0.1
- ui-awesome/html-helper: ^0.2
- ui-awesome/html-svg: ^0.2
- yii2-extensions/asset-bootstrap5: ^0.1
- yii2-extensions/bootstrap5: ^0.1
- yii2-extensions/localeurls: dev-main
- yiisoft/config: ^1.4
- yiisoft/yii2: ^2.0.49 || ^2.2
- yiisoft/yii2-symfonymailer: ^4.0
Requires (Dev)
- codeception/c3: ^2.8
- codeception/codeception: ^5.0.0
- codeception/lib-innerbrowser: ^4.0
- codeception/module-asserts: ^3.0
- codeception/module-filesystem: ^3.0
- codeception/module-yii2: ^1.1
- codeception/verify: ^3.0
- maglnet/composer-require-checker: ^4.6
- symfony/browser-kit: ^6.3
- symfony/process: ^6.3
- yii2-extensions/debug: dev-main
- yii2-extensions/gii: dev-main
- yii2-extensions/phpstan: ^0.1
This package is auto-updated.
Last update: 2024-10-09 17:54:24 UTC
README
Web Application Basic
Web Application Basic of Yii Version 2. Yii Framework application best for rapidly creating projects with Bootstrap 5.
Directory structure
root
├── config
│ ├── Common Common configuration.
│ │ ├── components.php
│ │ └── container.php
│ ├── Console Console configuration.
│ │ ├── app.php
│ │ └── components.php
│ ├── Web Web configuration.
│ │ ├── app.php
│ │ ├── bootstrap.php
│ │ ├── components.php
│ │ ├── container.php
│ │ └── modules.php
│ ├── build.php Build configuration codeception tests.
│ ├── config-plugin.php Plugin configuration.
│ ├── messages.php Translation configuration.
│ ├── params-console.php Console parameters.
│ ├── params-web.php Web parameters.
│ └── params.php Common parameters.
├── src
│ ├── Framework
│ │ ├── Asset Asset bundle files.
│ │ ├── EnventHandler Event handler files.
│ │ └── resources
│ │ ├── css Css files.
│ │ ├── js Js files.
│ │ ├── layout Layout files.
│ │ └── message Translation files.
│ └── UseCase
│ ├── Contact Contact use case.
│ ├── Hello Hello use case (console).
│ └── Site Site use case.
│ └── About About use case.
├── tests Tests codeception.
├── vendor Composer dependencies.
└── public Web server public.
Features
The web application contains:
It includes all commonly used configurations that would allow you to focus on adding new features to your application.
Installation
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this project app-basic using the following command:
composer create-project --prefer-dist --stability=dev yii2-extensions/app-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.
Virtual Host:
http://localhost:8080/
Server Yii:
./yii serve
Console commands:
./yii hello/index
Generate translations
To generate the Yii Web Application Basic translations, you can change the language settings in the configuration file.
config/messages.php
Automatically the generator will create the folder of your language in `src/Framework/resource/message`, If any translation is needed, you can open an issue to add it.
Root directory
./yii message config/messages.php
Tests
// download all composer dependencies root project
$ composer update --prefer-dist -vvv
// run all tests with code coverage
$ vendor/bin/codecept run --coverage-xml
Support versions Yii2
Our social networks
License
The MIT License. Please see License File for more information.