2017 © Pedro PelΓ‘ez
 

project php-app-bootstrap

A bootstrap for a web application, including basic common files and settings

image

raphhh/php-app-bootstrap

A bootstrap for a web application, including basic common files and settings

  • Wednesday, May 13, 2015
  • by raphhh
  • Repository
  • 1 Watchers
  • 1 Stars
  • 26 Installations
  • ApacheConf
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Web Application Bootstrap

Latest Stable Version Build Status Scrutinizer Quality Score Code Coverage Total Downloads License, (*1)

A bootstrap for a web application in PHP. Don't set, just code!, (*2)

About

This bootstrap will install all the basic files and settings to start a PHP web application., (*3)

This assumes you'll use Git for vcs, Composer for dependencies, PHPUnit for testing, Travis and Scrutinizer for integration servers., (*4)

Files architecture

β”œβ”€β”€ public
|   β”œβ”€β”€ .htaccess
|   β”œβ”€β”€ index.php
|   └── robots.txt
β”œβ”€β”€ src
|   └── Dummy.php
β”œβ”€β”€ tests
|   └── DummyTest.php
β”œβ”€β”€ vendor
β”œβ”€β”€ .editorconfig
β”œβ”€β”€ .gitattributes
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .scrutinizer.yml
β”œβ”€β”€ .travis.yml
β”œβ”€β”€ composer.json
β”œβ”€β”€ composer.lock
β”œβ”€β”€ LICENSE
β”œβ”€β”€ phpunit.xml.dist
β”œβ”€β”€ README.md
└── run
  • "public" is the web entry point.
  • "src" contains all your PHP code.
  • "tests" contains all your PHP tests. See PHPUnit for more information.
  • "vendor" contains all your PHP dependencies. See Composer for more information.

Installation

Just execute Samurai with 'app' bootstrap., (*5)

$ samurai new app

With Composer

First, execute Composer to create your project., (*6)

$ composer create-project raphhh/php-lib-bootstrap path/to/my/project

Go into your project., (*7)

$ cd path/to/my/project

Then, you need to replace composer.json with your specific info., (*8)

Usage

Launch unit tests

This bootstrap is configured to use PHPUnit. To run the tests, cd to your project and enter the following command in your console:, (*9)

$ vendor/bin/phpunit

Launch app in the browser

The public entry point of the application is the dir "public". To run the app, cd to your project and enter the following command in your console:, (*10)

$ run

This command will launch for you the PHP internal server. Then, open your browser and go to http://localhost:8080/, (*11)

The Versions

13/05 2015

dev-master

9999999-dev

A bootstrap for a web application, including basic common files and settings

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by RaphaΓ«l Lefebvre

bootstrap samurai

05/04 2015

1.0.0

1.0.0.0

A bootstrap for a web application, including basic common files and settings

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by RaphaΓ«l Lefebvre

bootstrap samurai