https://github.com/yii2-extensions/app-basic
Yii 2.0 Web Application.
https://github.com/yii2-extensions/app-basic
app-basic config-plugin dark-theme multilanguage vertical-slices yii2 yii2-extensions
Last synced: 6 months ago
JSON representation
Yii 2.0 Web Application.
- Host: GitHub
- URL: https://github.com/yii2-extensions/app-basic
- Owner: yii2-extensions
- License: mit
- Created: 2019-01-12T18:02:39.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T17:10:11.000Z (11 months ago)
- Last Synced: 2024-12-02T07:52:18.652Z (6 months ago)
- Topics: app-basic, config-plugin, dark-theme, multilanguage, vertical-slices, yii2, yii2-extensions
- Language: PHP
- Homepage: https://app.basic.yii.lat/
- Size: 1.84 MB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Web Application Basic
Web Application Basic of Yii Version 2. Yii Framework application best for rapidly creating projects with Bootstrap 5.
## Directory structure
```text
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:
- [x] Pages - [Screenshots]:
- [about](docs/about.png)
- [contact](docs/contact.png)
- [404](docs/404.png)
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:
```shell
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:*__
```shell
./yii serve
```__Console commands:__
```shell
./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
[](https://github.com/yiisoft/yii2/tree/2.0.49.3)
[](https://github.com/yiisoft/yii2/tree/2.2)## Our social networks
[](https://twitter.com/Terabytesoftw)
## License
The MIT License. Please see [License File](LICENSE.md) for more information.