yii2-extensions/app-basic

Web Application Basic

dev-main 2024-04-04 10:36 UTC

This package is auto-updated.

Last update: 2024-04-04 10:36:48 UTC


README

68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f7969695f6c6f676f5f6c696768742e737667

Web Application Basic

php-version PHPUnit Codecov PHPStan PHPStan level Code style


Web Application Basic of Yii Version 2. Yii Framework application best for rapidly creating projects with Bootstrap 5.


app-basic


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

Yii20 Yii22

Our social networks

Twitter

License

The MIT License. Please see License File for more information.