Download the PHP package ethercreative/yii2-app-api without Composer
On this page you can find all versions of the php package ethercreative/yii2-app-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ethercreative/yii2-app-api
More information about ethercreative/yii2-app-api
Files in ethercreative/yii2-app-api
Package yii2-app-api
Short Description Yii 2 RESTful API Template
License MIT
Homepage http://www.ethercreative.co.uk/
Informations about the package yii2-app-api
Yii 2 API Project Template
REQUIREMENTS
The minimum requirement by this project template that your Web server supports PHP 5.4.0.
INSTALLATION
Install from an Archive File
Extract the archive file downloaded from github.com to
a directory named api
that is directly under the Web root.
Set cookie validation key in config/web.php
file to some random secret string:
You can then access the application through the following URL:
http://localhost/api/web/
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:
php composer.phar global require "fxp/composer-asset-plugin:~1.1.1"
php composer.phar create-project --prefer-dist --stability=dev ethercreative/yii2-app-api api
Now you should be able to access the application through the following URL, assuming api
is the directory
directly under the Web root.
http://localhost/api/web/
CONFIGURATION
Database
Edit the file config/db.php
with real data, for example:
NOTES:
- Yii won't create the database for you, this has to be done manually before you can access it.
- Check and edit the other files in the
config/
directory to customize your application as required. - Refer to the README in the
tests
directory for information specific to basic application tests.
All versions of yii2-app-api with dependencies
yiisoft/yii2 Version >=2.0.5
yiisoft/yii2-bootstrap Version *
yiisoft/yii2-swiftmailer Version *