phootstrap
phootstrap is a php application template., (*1)
About
This template provides a project skeleton to write small php
applications and prototypes.
It uses the following awesome libraries:, (*2)
-
composer
-- The fabolous package installer
-
silex
-- A small, fast and extensible web framework
-
redbeanphp
-- Dead simple orm
-
twig
-- Easy to use template engine
Get started
If you haven't installed composer, do it now (visit composer
website for more instructions):, (*3)
curl -sS https://getcomposer.org/installer | php
You can install phootstrap using composer:, (*4)
composer.phar create-project agvstin/phootstrap --stability=dev
or directly from GitHub:, (*5)
# clone this repo
git clone git://github.com/agvstin/phootstrap.git myapp
cd myapp
# start your own repo
rm -rf .git
git init .
git add .
git commit -m "Initial import from phootstrap"
# install vendors
composer.phar install
Copy the config file, (*6)
# copy parameters file (and edit as you need...)
cp config/parameters.example.ini config/parameters.ini
If you have php 5.4.0
or greater, you can start a web server by
running:, (*7)
# use a free port
./bin/server 7890
Otherwise, setup a virtual host and point the DocumentRoot
to the
web
directory., (*8)
Open your browser and head to http://localhost:7890 (or the configured
vitual host)., (*9)
That's it! You can start developing your app!, (*10)