cornernote / app

12factor PHP Application Template for Yii 2.0 Framework

Home Page:http://phundament.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phundament 4

Please note: This is a beta version.

Phundament is a 12factor PHP application template for Yii Framework 2.0.

Build Status Total Downloads Stories in Ready

Quick-Start

Composer installation

You can install Phundament 4 using composer...

composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
composer create-project --stability=beta phundament/app myapp

Create and adjust your environment configuration, eg. add a database...

cd myapp
cp .env-dist .env
edit .env

Run the application setup...

./yii app/setup

Open http://path-to-app/web or http://path-to-app/web?r=admin in your browser.

Docker installation

Note: docker-compose was originally named fig and is available here.

First pull the latest version of the container image

docker pull phundament/app

Create your application folder

mkdir myapp
cd myapp

And copy the source code from the image

docker run \
    --volume `pwd`:/app-install \
    phundament/app:4.0-development \
    cp -r /app/. /app-install

Now you can start your application by bringing up the web service

docker-compose up web

If you're running a reverse proxy you can acces the application under myapp.192.168.59.103.xip.io. Or check the container port with docker-compose ps.

Note: Further installation methods with Docker, fig (docker-compose), Vagrant & Docker or PaaS are available in the documentation.

Resources

About

12factor PHP Application Template for Yii 2.0 Framework

http://phundament.com

License:Other


Languages

Language:CSS 66.4%Language:PHP 32.0%Language:Shell 0.7%Language:Ruby 0.5%Language:JavaScript 0.3%