rgl/yii2-template-api

Yii 2 Api Project Template

v1.0.0 2022-07-29 16:28 UTC

This package is auto-updated.

Last update: 2024-11-29 06:23:19 UTC


README

Yii 2 Api Project Template


Yii 2 Api Project Template is a skeleton Yii 2 application best for rapidly creating modular projects.

Install via Composer

You can then install this project template using the following command:

composer create-project --prefer-dist --stability=dev raubel1993/yii2-template-api basic

Now you should be able to access the application through the following URL, assuming basic is the directory directly under the Web root.

http://localhost/basic/web/

Install with Docker

Update your vendor packages

docker-compose run --rm php composer update --prefer-dist

Run the installation triggers (creating cookie validation code)

docker-compose run --rm php composer install    

Start the container

docker-compose up -d

You can then access the application through the following URL:

http://127.0.0.1:8000

NOTES:

  • Minimum required Docker engine version 17.04 for development (see Performance tuning for volume mounts)
  • The default configuration uses a host-volume in your home directory .docker-composer for composer caches

CONFIGURATION