Skip to content

HTTPS clone URL

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 51-fig.md
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
CHANGELOG.md updated CHANGELOG
Dockerfile cleanup
LICENSE.md updated copyright year
Makefile updated build
README.md Update README.md
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

README.md

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

Demo

Checkout the Phundament Playground Application Demo!

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

Quick-Start

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 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

Something went wrong with that request. Please try again.