johnkary / skeleton-for-rob

Project we started at KCPHP March 4, 2015

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP Project Skeleton

Basic project structure for a PSR-0 compliant PHP application. Already setup with an example class and test case to show you the way.

Installation

  1. This project manages its dependencies with Composer. Start by installing Composer:

     curl -s http://getcomposer.org/installer | php
    
  2. Create project skeleton:

     php composer.phar create-project johnkary/php-skeleton
    
  3. Start developing your own project by creating new files in src and searching for libraries on Packagist

Running tests

To execute this project's test suite:

  1. Optionally copy and configure phpunit.xml.dist for your project's environment:

     cp phpunit.xml.dist phpunit.xml
     vi phpunit.xml
    
  2. Run the test suite:

     ./vendor/bin/phpunit
    

Generating code coverage:

  1. Ensure Xdebug is installed and configured.

  2. Execute PHPUnit:

     ./vendor/bin/phpunit --coverage-html=coverage/
    

About

Project we started at KCPHP March 4, 2015

License:MIT License


Languages

Language:PHP 100.0%