agvstin/phootstrap

PHP application template (silex + redbean + twig + bootstrap)

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

dev-master 2013-03-02 12:19 UTC

This package is not auto-updated.

Last update: 2024-04-13 11:56:22 UTC


README

phootstrap is a php application template.

About

This template provides a project skeleton to write small php applications and prototypes. It uses the following awesome libraries:

  • 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):

curl -sS https://getcomposer.org/installer | php

You can install phootstrap using composer:

composer.phar create-project agvstin/phootstrap --stability=dev

or directly from GitHub:

# 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

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

# use a free port
./bin/server 7890

Otherwise, setup a virtual host and point the DocumentRoot to the web directory.

Open your browser and head to http://localhost:7890 (or the configured vitual host).

That's it! You can start developing your app!