2017 © Pedro Peláez
 

library php-lib-bootstrap

A bootstrap for a PHP lib, including basic common files and settings

image

raphhh/php-lib-bootstrap

A bootstrap for a PHP lib, including basic common files and settings

  • Thursday, April 9, 2015
  • by raphhh
  • Repository
  • 2 Watchers
  • 6 Stars
  • 127 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

PHP Lib Bootstrap

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

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

About

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

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

Files architecture

├── src
|   └── Dummy.php
├── tests
|   └── DummyTest.php
├── vendor
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .scrutinizer.yml
├── .travis.yml
├── composer.json
├── LICENSE
├── phpunit.xml.dist
└── README.md
  • "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 'lib' boostrap., (*5)

$ samurai new lib

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

The Versions

09/04 2015

dev-master

9999999-dev https://github.com/Raphhh/php-lib-bootstrap

A bootstrap for a PHP lib, 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.4

1.0.4.0 https://github.com/Raphhh/php-lib-bootstrap

A bootstrap for a PHP lib, including basic common files and settings

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Raphaël Lefebvre

bootstrap samurai

10/03 2015

1.0.3

1.0.3.0 https://github.com/Raphhh/php-lib-bootstrap

A bootstrap for a PHP lib, including basic common files and settings

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Raphaël Lefebvre

bootstrap

18/02 2015

1.0.2

1.0.2.0 https://github.com/Raphhh/php-lib-bootstrap

A bootstrap for a PHP lib, including basic common files and settings

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Raphaël Lefebvre

bootstrap

30/12 2014

1.0.1

1.0.1.0 https://github.com/Raphhh/php-lib-bootstrap

A bootstrap for a PHP lib, including basic common files and settings

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Raphaël Lefebvre

bootstrap

03/09 2014

1.0.0

1.0.0.0 https://github.com/Raphhh/php-lib-bootstrap

A bootstrap for a PHP lib, including basic common files and settings

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Raphaël Lefebvre

bootstrap