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
Failed to load latest commit information.
assets cleanup
build updated docs
commands Merge pull request #151 from cornernote/patch-1
config cleanup
controllers updated view, ignored local config
data
docs updated docs
migrations refactored application to basic layout
models updated model to match test
modules/admin updated backend layout
runtime
tests/codeception added example URLs for Selenium tests
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 assets, ignored asset-prod output folder, files are only adde…
.travis.yml updated testing setup
CHANGELOG.md updated CHANGELOG
Dockerfile updated build process, added asset compression
Dockerfile-production updated build process, added asset compression
LICENSE.md updated copyright year
README.md Update README.md
Vagrantfile renamed build/dockerhost to build/vagrant-dockerhost
codeception.yml added example URLs for Selenium tests
composer.json updated asset compression
composer.lock updated assets, ignored asset-prod output folder, files are only adde…
fig.yml updated build process, added asset compression
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.