Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 35 additions & 8 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,35 @@
# Ignore all test and documentation for archive
/.github export-ignore
/.gitattributes export-ignore
/.scrutinizer.yml export-ignore
/.travis.yml export-ignore
/docs export-ignore
/composer.lock
*.css linguist-language=PHP
# Autodetect text files
* text=auto eol=lf

# ...Unless the name matches the following overriding patterns

# Definitively text files
*.php text
*.css text
*.js text
*.txt text
*.md text
*.xml text
*.json text
*.bat text
*.sql text
*.yml text

# Ensure those won't be messed up with
*.png binary
*.jpg binary
*.gif binary
*.ttf binary

# Avoid merge conflicts in CHANGELOG
# https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/
/CHANGELOG.md merge=union

# Exclude files from the archive
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.styleci.yml export-ignore
/docs export-ignore
/psalm.xml export-ignore
/tests export-ignore
23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@

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.

![app-basic](docs/home.png)
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/images/home-dark.png">
<source media="(prefers-color-scheme: light)" srcset="docs/images/home.png">
<img src="docs/images/home.png" alt="Web Application Basic">
</picture>

## Features

Expand Down Expand Up @@ -81,7 +85,7 @@ cd myapp

```bash
# Using built-in PHP server
php -S localhost:8080 -t public
php -S localhost:8080 -t web

# Or using Yii console command
./yii serve
Expand Down Expand Up @@ -149,13 +153,11 @@ root/
│ │ ├── event/ Event handlers
│ │ └── resource/ CSS, JS, layouts, messages
│ └── usecase/ Application use cases
│ ├── contact/ Contact functionality
│ ├── hello/ Console command example
│ ├── security/ Security features
│ └── site/ Site pages
├── tests/ Test suites
├── vendor/ Composer dependencies
└── public/ Web server document root
└── web/ Web server document root
```

#### Creating your first page
Expand All @@ -176,11 +178,6 @@ class SiteController extends Controller
{
return $this->render('index');
}

public function actionAbout(): string
{
return $this->render('about');
}
}
```

Expand Down Expand Up @@ -216,10 +213,8 @@ For detailed configuration options and advanced usage:

The web application includes these ready-to-use pages:

- **[Home Page](docs/home.png)** - Welcome page with navigation
- **[About Page](docs/about.png)** - Information about your application
- **[Contact Page](docs/contact.png)** - Contact form with validation
- **[404 Error Page](docs/404.png)** - Custom error handling
- **[404 Error Page](docs/images/404.png)** - Custom error handling
- **[404 Error Page Dark](docs/images/404-dark.png)** - Custom error handling

## Our social networks

Expand Down
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
"require": {
"php": ">=8.1",
"php-forge/foxy": "^0.1",
"ui-awesome/html": "^0.3",
"ui-awesome/html-component-bootstrap5": "^1.0@dev",
"ui-awesome/html-svg":"^0.2",
"vlucas/phpdotenv": "^5.6",
"yii2-extensions/localeurls": "^0.1.0",
"yiisoft/yii2": "^2.0.53|^22",
"yiisoft/yii2-bootstrap5": "^2.0.50|^22",
"yiisoft/yii2-symfonymailer": "^4.0|^22"
Expand Down
Loading
Loading