Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
12factor PHP Application Template for Yii 2.0 Framework
CSS PHP Shell Other
Failed to load latest commit information.
assets cleanup
build updated build
commands Update AppController.php
config updated build
controllers updated view, ignored local config
data refactored application to basic layout
docs Update
migrations refactored application to basic layout
models updated model to match test
modules/admin updated backend layout
runtime refactored application to basic layout
tests/codeception added tests (wip)
views windows directory separator fix 2
web refactored application to basic layout
widgets refactored application to basic layout
.bowerrc new asset WIP: renabled asset publishing
.dockerignore updated production build
.env-dist added comment
.gitignore updated build
.travis.yml updated testing setup updated CHANGELOG
Dockerfile cleanup updated copyright year
Makefile updated build Update
codeception.yml added example URLs for Selenium tests
composer.json updated build
composer.lock updated build
docker-compose.yml fix nginx image url for web container
yii refactored application to basic layout
yii.bat Fixed copyright year in batch files

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


Checkout the Phundament Playground Application Demo!

You can get the source-code of the demo application from its GitHub repository.


Composer installation

You can install Phundament 4 using composer...

composer global require "fxp/composer-asset-plugin:1.0.0"
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 -v `pwd`:/install phundament/app:4.0-development cp -r /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 container you can acces the application under 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.


Something went wrong with that request. Please try again.