Download the PHP package cottacush/yii2-base-project without Composer
On this page you can find all versions of the php package cottacush/yii2-base-project. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-base-project
Yii2 Base Project
A Yii 2 Base Project Template
Features
-
Yii framework as the PHP MVC framework.
-
Security - It sets some headers that projects applications against click-jacking and XSS.
-
Assets version - This fixes issue with updates to js and css files and cached browser files.
-
New Relic - Ensures that the proper routes show up in the new relic monitoring dashboard.
- Continuous Integration - Sample ant build.xml file that can be easily modified.
Requirements
The minimum requirement by this project template that your Web server supports PHP 8.0.
Install via Composer
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this project template using the following command:
composer global require "fxp/composer-asset-plugin:~1.4"
composer create-project --prefer-dist cottacush/yii2-base-project new_project
Virtual Host Setup
Sample Virtual Host Config for Apache
Build
Dependencies
Run build
Environment Variables
Make a copy of .env.sample
to .env
in the env directory.
Docker
This project is dockerized using the LEMP stack. The stack consists of:
- PHP 8
- nginx
Inspired by yii2-dockerized
Installation
Running Containers
- Ensure docker is running
- Change directory to project directory
- Run the command
docker-compose up
- To rebuild the containers after updates to docker config files, run
docker-compose up --build
Entering Container CLI
- Run the command
docker ps
- Check the Container ID for container with image ending with "_web"
- Run the command
docker exec -it [container_id] bash
Change log
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Adegoke Obasa [email protected]
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of yii2-base-project with dependencies
yiisoft/yii2 Version ~2.0.40
yiisoft/yii2-swiftmailer Version *
vlucas/phpdotenv Version ^2.2
lukasoppermann/http-status Version ^2.0
ogheo/yii2-htmlcompress Version ^1.1
cottacush/yii2-utils Version ^3.0
cottacush/yii2-widgets Version ^2.0
cottacush/yii2-user-auth Version ^2.0
yiisoft/yii2-bootstrap4 Version ^2.0