Skip to content
Open
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
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
vendor
6 changes: 4 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ PROJECT_NAME=yii2-skeleton
# ---------
# Docker
# ---------
DOCKER_APP_PORT=8080
DOCKER_APP_PORT=80
DOCKER_PHP_VERSION=latest #supported versions -> https://hub.docker.com/r/webdevops/php-nginx-dev/tags
DOCKER_MYSQL_VERSION=latest #ssupported versions -> https://hub.docker.com/_/mysql/?tab=tags
DOCKER_MYSQL_PORT=3306
XDEBUG_REMOTE_PORT=9000
XDEBUG_REMOTE_HOST=host.docker.internal
Expand All @@ -21,7 +23,7 @@ REQUEST_COOKIE_VALIDATION_KEY=YOUR_VALIDATION_KEY
# ---------
# Database
# ---------
DB_DSN=mysql:host=your-db-host;dbname=yii2_skeleton
DB_DSN=mysql:host=mysql;dbname=yii2_skeleton
DB_USERNAME=root
DB_PASSWORD=secret
DB_DATABASE=yii2_skeleton
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Thumbs.db

# composer itself is not needed
composer.phar
composer.lock

# Mac DS_Store Files
.DS_Store
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ The [makefile](https://github.com/dersonsena/yii2-skeleton/blob/master/makefile)
Perform composer install with optimize autoloaders parameter<br>
ex.: `make install`

- #### **update**<br>
Perform composer update<br>
ex.: `make update`

- #### **require**<br>
Perform composer require with the PACKAGE parameter<br>
ex.: `make PACKAGE="vendor/package" require`
Expand Down
23 changes: 13 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
{
"name": "dersonsena/yii2-skeleton",
"description": "A new approach for yii2 basic template",
"keywords": ["yii2", "yii2 skeleton", "yii2-template", "template"],
"keywords": [
"yii2",
"yii2 skeleton",
"yii2-template",
"template"
],
"homepage": "http://www.yiiacademy.com.br",
"type": "project",
"license": "BSD-3-Clause",
"minimum-stability": "stable",
"require": {
"php": ">=7",
"yiisoft/yii2": "~2.0.38",
"yiisoft/yii2-bootstrap": "~2.0.0",
"yiisoft/yii2-swiftmailer": "~2.0.0 || ~2.1.0",
"vlucas/phpdotenv": "^3.4"
"yiisoft/yii2": "^2.0.0",
"yiisoft/yii2-bootstrap": "^2.0.0",
"yiisoft/yii2-swiftmailer": "^2.0.0"
},
"require-dev": {
"yiisoft/yii2-debug": "~2.1.0",
"yiisoft/yii2-gii": "~2.1.0",
"yiisoft/yii2-faker": "~2.0.0",

"yiisoft/yii2-debug": "^2.0.0",
"yiisoft/yii2-gii": "^2.0.0",
"yiisoft/yii2-faker": "^2.0.0",
"codeception/base": "~2.3.0",
"codeception/verify": "~0.4.0",
"codeception/specify": "~0.4.6",
Expand Down Expand Up @@ -61,4 +64,4 @@
"url": "https://asset-packagist.org"
}
]
}
}
Loading