Skip to content

Commit b32985b

Browse files
fix(app): Remove all stack configurations. (#133)
1 parent 4d58e8d commit b32985b

36 files changed

+45
-1601
lines changed

.github/workflows/docker.yml

Lines changed: 0 additions & 126 deletions
This file was deleted.

README.md

Lines changed: 17 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77

88
<p align="center">
99
<a href="https://www.php.net/releases/8.1/en.php" target="_blank">
10-
<img src="https://img.shields.io/badge/PHP-%3E%3D8.1-787CB5" alt="php-version">
10+
<img src="https://img.shields.io/badge/%3E%3D8.1-777BB4.svg?style=for-the-badge&logo=php&logoColor=white" alt="PHP version">
1111
</a>
1212
<a href="https://github.com/yiisoft/yii2/tree/2.0.53" target="_blank">
13-
<img src="https://img.shields.io/badge/Yii2%20-2.0.53-blue" alt="Yii2 2.0.53">
13+
<img src="https://img.shields.io/badge/2.0.x-0073AA.svg?style=for-the-badge&logo=yii&logoColor=white" alt="Yii 2.0.x">
1414
</a>
1515
<a href="https://github.com/yiisoft/yii2/tree/22.0" target="_blank">
16-
<img src="https://img.shields.io/badge/Yii2%20-22-blue" alt="Yii2 22.0">
16+
<img src="https://img.shields.io/badge/22.0.x-0073AA.svg?style=for-the-badge&logo=yii&logoColor=white" alt="Yii 22.0.x">
1717
</a>
1818
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/build.yml" target="_blank">
19-
<img src="https://github.com/yii2-extensions/app-basic/actions/workflows/build.yml/badge.svg" alt="PHPUnit">
19+
<img src="https://img.shields.io/github/actions/workflow/status/yii2-extensions/app-basic/build.yml?branch=main&style=for-the-badge&label=PHPUnit" alt="PHPUnit">
2020
</a>
2121
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml" target="_blank">
22-
<img src="https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml/badge.svg" alt="PHPStan">
23-
</a>
22+
<img src="https://img.shields.io/github/actions/workflow/status/yii2-extensions/app-basic/static.yml?branch=main&style=for-the-badge&label=PHPStan" alt="PHPStan">
23+
</a>
2424
</p>
2525

2626
A modern, Bootstrap 5-powered Yii2 application template designed for rapid web-application development. Built with best practices, clean architecture, and developer-friendly configuration, it lets you create production-ready apps with minimal setup while maintaining code quality and extensibility.
@@ -38,16 +38,8 @@ A modern, Bootstrap 5-powered Yii2 application template designed for rapid web-a
3838
-**Console Commands** - Example console commands for background tasks and maintenance.
3939
-**Developer Tools** - Debugging tools, logging, and development-friendly configurations.
4040
-**Modern Bootstrap 5 UI** - Responsive, mobile-first design with latest Bootstrap components.
41-
-**SSL Support** - Configured for secure HTTPS connections with SSL (mkcert).
4241
-**Testing Ready** - Codeception test suite with examples for functional and unit testing.
4342

44-
## Supported web servers
45-
46-
[![Apache](https://img.shields.io/badge/apache-%23D42029.svg?style=for-the-badge&label=docker&logo=apache&logoColor=white)](docker-compose.yml)
47-
[![Caddy](https://img.shields.io/badge/caddy-%231F88C0.svg?style=for-the-badge&label=docker&logo=caddy&logoColor=white)](docker-compose.caddy.yml)
48-
[![FrankenPHP](https://img.shields.io/badge/frankenphp-%23FF6B35.svg?style=for-the-badge&label=docker&logo=php&logoColor=white)](docker-compose.frankenphp.yml)
49-
[![Nginx](https://img.shields.io/badge/nginx-%23009639.svg?style=for-the-badge&label=docker&logo=nginx&logoColor=white)](docker-compose.nginx.yml)
50-
5143
## Quick start
5244

5345
### How it works
@@ -73,8 +65,8 @@ The Yii2 Web Application Basic template provides a complete foundation for build
7365
**Quick start**
7466

7567
```bash
76-
composer create-project --prefer-dist --stability=dev yii2-extensions/app-basic myapp
77-
cd myapp
68+
composer create-project --prefer-dist --stability=dev yii2-extensions/app-basic app-basic
69+
cd app-basic
7870
```
7971

8072
**Start development server**
@@ -87,43 +79,6 @@ php -S localhost:8080 -t web
8779
./yii serve
8880
```
8981

90-
**Start Apache or Nginx server**
91-
92-
```bash
93-
# For Apache
94-
docker-compose up -d
95-
96-
# For Caddy
97-
docker-compose -f docker-compose.caddy.yml up -d
98-
99-
# For FrankenPHP
100-
docker-compose -f docker-compose.frankenphp.yml up -d
101-
102-
# For Nginx
103-
docker-compose -f docker-compose.nginx.yml up -d
104-
```
105-
106-
### Access your application
107-
108-
After starting the server, you can access your application in your web browser.
109-
110-
```bash
111-
# For built-in PHP server
112-
http://localhost:8080/
113-
114-
# For Apache
115-
https://localhost:8443/
116-
117-
# For Caddy
118-
https://localhost:8444/
119-
120-
# For FrankenPHP
121-
https://localhost:8445/
122-
123-
# For Nginx
124-
https://localhost:8446/
125-
```
126-
12782
### Basic usage
12883

12984
#### Directory structure
@@ -135,18 +90,9 @@ root/
13590
│ ├── console/ Console configuration
13691
│ ├── web/ Web configuration
13792
│ └── messages.php Translation config
138-
├── docker/ Docker configuration files
139-
│ ├── apache/ Apache configuration
140-
│ ├── caddy/ Caddy configuration
141-
│ ├── frankenphp/ FrankenPHP configuration
142-
│ ├── nginx/ Nginx configuration
143-
│ ├── php/ PHP configuration
144-
│ ├── ssl/ SSL certificates
145-
│ └── supervisor/ Supervisor configuration
14693
├── src/
14794
│ ├── framework/ Framework assets & resources
14895
│ │ ├── asset/ Asset bundles
149-
│ │ ├── event/ Event handlers
15096
│ │ └── resource/ CSS, JS, layouts, messages
15197
│ └── usecase/ Application use cases
15298
│ ├── hello/ Console command example
@@ -168,7 +114,7 @@ namespace app\usecase\site;
168114

169115
use yii\web\Controller;
170116

171-
class SiteController extends Controller
117+
final class SiteController extends Controller
172118
{
173119
public function actionIndex(): string
174120
{
@@ -191,11 +137,11 @@ class SiteController extends Controller
191137
```
192138
## Quality code
193139

194-
[![Latest Stable Version](https://poser.pugx.org/yii2-extensions/app-basic/v)](https://packagist.org/packages/yii2-extensions/app-basic)
195-
[![Total Downloads](https://poser.pugx.org/yii2-extensions/app-basic/downloads)](https://packagist.org/packages/yii2-extensions/app-basic)
196-
[![codecov](https://codecov.io/github/yii2-extensions/app-basic/graph/badge.svg?token=zcXbeTspxy)](https://codecov.io/github/yii2-extensions/app-basic)
197-
[![phpstan-level](https://img.shields.io/badge/PHPStan%20level-max-blue)](https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml)
198-
[![StyleCI](https://github.styleci.io/repos/698621511/shield?branch=main)](https://github.styleci.io/repos/698621511?branch=main)
140+
[![Latest Stable Version](https://img.shields.io/packagist/v/yii2-extensions/app-basic.svg?style=for-the-badge&logo=packagist&logoColor=white&label=Stable)](https://packagist.org/packages/yii2-extensions/app-basic)
141+
[![Total Downloads](https://img.shields.io/packagist/dt/yii2-extensions/app-basic.svg?style=for-the-badge&logo=packagist&logoColor=white&label=Downloads)](https://packagist.org/packages/yii2-extensions/app-basic)
142+
[![Codecov](https://img.shields.io/codecov/c/github/yii2-extensions/app-basic.svg?branch=main&style=for-the-badge&logo=codecov&logoColor=white&label=Coverage)](https://codecov.io/github/yii2-extensions/app-basic)
143+
[![PHPStan Level Max](https://img.shields.io/badge/PHPStan-Level%20Max-4F5D95.svg?style=for-the-badge&logo=php&logoColor=white)](https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml)
144+
[![StyleCI](https://img.shields.io/badge/StyleCI-Passed-44CC11.svg?style=for-the-badge&logo=styleci&logoColor=white)](https://github.styleci.io/repos/165419144?branch=main)
199145

200146
## Documentation
201147

@@ -204,18 +150,12 @@ For detailed configuration options and advanced usage:
204150
- 📚 [Installation Guide](docs/installation.md)
205151
- ⚙️ [Configuration Reference](docs/configuration.md)
206152
- 🧪 [Testing Guide](docs/testing.md)
207-
208-
## Screenshots
209-
210-
The web application includes these ready-to-use pages:
211-
212-
- **[404 Error Page](docs/images/404.png)** - Custom error handling
213-
- **[404 Error Page Dark](docs/images/404-dark.png)** - Custom error handling
153+
- 📸 [Screenshots](docs/screenshots.md)
214154

215155
## Our social networks
216156

217-
[![X](https://img.shields.io/badge/follow-@terabytesoftw-1DA1F2?logo=x&logoColor=1DA1F2&labelColor=555555&style=flat)](https://x.com/Terabytesoftw)
157+
[![Follow on X](https://img.shields.io/badge/-Follow%20on%20X-1DA1F2.svg?style=for-the-badge&logo=x&logoColor=white&labelColor=000000)](https://x.com/Terabytesoftw)
218158

219159
## License
220160

221-
[![License](https://img.shields.io/github/license/yii2-extensions/app-basic)](LICENSE.md)
161+
[![License](https://img.shields.io/github/license/yii2-extensions/app-basic?style=for-the-badge&logo=opensourceinitiative&logoColor=white&labelColor=333333)](LICENSE.md)

docker-compose.caddy.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

docker-compose.frankenphp.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

docker-compose.nginx.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)