PHPackages                             raphhh/php-lib-bootstrap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. raphhh/php-lib-bootstrap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

raphhh/php-lib-bootstrap
========================

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

1.0.4(11y ago)41361MITPHPPHP &gt;=5.4

Since Sep 3Pushed 11y ago2 watchersCompare

[ Source](https://github.com/Raphhh/php-lib-bootstrap)[ Packagist](https://packagist.org/packages/raphhh/php-lib-bootstrap)[ Docs](https://github.com/Raphhh/php-lib-bootstrap)[ RSS](/packages/raphhh-php-lib-bootstrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

PHP Lib Bootstrap
=================

[](#php-lib-bootstrap)

[![Latest Stable Version](https://camo.githubusercontent.com/3537de343ea9340151cc197cad0ce84e31d6c6d4ddec06889d80154af1c0d6a2/68747470733a2f2f706f7365722e707567782e6f72672f7261706868682f7068702d6c69622d626f6f7473747261702f762f737461626c652e737667)](https://packagist.org/packages/raphhh/php-lib-bootstrap)[![Build Status](https://camo.githubusercontent.com/8a49f44564e08b61e5801a42bd71416c13c40aa993191fac73efe1cec9d4ae17/68747470733a2f2f7472617669732d63692e6f72672f5261706868682f7068702d6c69622d626f6f7473747261702e706e67)](https://travis-ci.org/Raphhh/php-lib-bootstrap)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/1352c067e45deb47b9ac28abefbbd92e5319ab5149201a81359c90f62e22b5d5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5261706868682f7068702d6c69622d626f6f7473747261702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Raphhh/php-lib-bootstrap/)[![Code Coverage](https://camo.githubusercontent.com/8edd6055091a113764d37fe8562963d9bde171839ad8331e1813f918ed672f3f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5261706868682f7068702d6c69622d626f6f7473747261702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Raphhh/php-lib-bootstrap/)[![Total Downloads](https://camo.githubusercontent.com/a5457f9d7cbe1c0b3e2efe3bdcf087492d79336fe38f7dad8ae27e6180ec0a31/68747470733a2f2f706f7365722e707567782e6f72672f7261706868682f7068702d6c69622d626f6f7473747261702f646f776e6c6f6164732e737667)](https://packagist.org/packages/raphhh/php-lib-bootstrap)[![Reference Status](https://camo.githubusercontent.com/08ec20da1ce8c9409dbb18b14d96016076c9c32148bbcdd8e652266fe82988bb/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f7261706868683a7068702d6c69622d626f6f7473747261702f7265666572656e63655f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/php/raphhh:php-lib-bootstrap/references)[![License](https://camo.githubusercontent.com/78824be10961a538e2eebabc18ea3df33a86d267e3164bb0f09c7f9596358f9d/68747470733a2f2f706f7365722e707567782e6f72672f7261706868682f7068702d6c69622d626f6f7473747261702f6c6963656e73652e737667)](https://packagist.org/packages/raphhh/php-lib-bootstrap)

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

About
-----

[](#about)

This bootstrap will install all the basic files and settings to start a PHP library.

This assumes you'll use [Git](http://git-scm.com/) for vcs, [Composer](https://getcomposer.org/) for dependencies, [PHPUnit](https://phpunit.de/) for testing, [Travis](https://travis-ci.org) and [Scrutinizer](https://scrutinizer-ci.com/) for integration servers.

Files architecture
------------------

[](#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](https://phpunit.de/) for more information.
- "vendor" contains all your PHP dependencies. See [Composer](https://getcomposer.org/) for more information.

Installation
------------

[](#installation)

### With Samurai (recommended)

[](#with-samurai-recommended)

Just execute [Samurai](https://github.com/Raphhh/samurai) with 'lib' boostrap.

```
$ samurai new lib

```

### With Composer

[](#with-composer)

First, execute [Composer](https://getcomposer.org/) to create your project.

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

```

Go into your project.

```
$ cd path/to/my/project

```

Then, you need to replace composer.json with your specific info.

Usage
-----

[](#usage)

### Launch unit tests

[](#launch-unit-tests)

This bootstrap is configured to use [PHPUnit](https://phpunit.de). To run the tests, cd to your project and enter the following command in your console:

```
$ vendor/bin/phpunit

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~53 days

Total

5

Last Release

4061d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5fd55d984cf31c25f875f5636331a20f8be77e9443f2fd17fbccf1f9c4fe7a4c?d=identicon)[raphhh](/maintainers/raphhh)

---

Top Contributors

[![Raphhh](https://avatars.githubusercontent.com/u/5206490?v=4)](https://github.com/Raphhh "Raphhh (37 commits)")

---

Tags

bootstrapsamurai

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/raphhh-php-lib-bootstrap/health.svg)

```
[![Health](https://phpackages.com/badges/raphhh-php-lib-bootstrap/health.svg)](https://phpackages.com/packages/raphhh-php-lib-bootstrap)
```

###  Alternatives

[kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

1163.2M59](/packages/kartik-v-yii2-editable)[kartik-v/yii2-date-range

An advanced Yii 2 date range picker input for based on bootstrap-daterangepicker plugin.

894.4M42](/packages/kartik-v-yii2-date-range)[kartik-v/yii2-dialog

An asset bundle for bootstrap3-dialog for Yii 2.0 framework.

496.2M18](/packages/kartik-v-yii2-dialog)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[kartik-v/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)

404.9M14](/packages/kartik-v-yii2-widget-timepicker)[kartik-v/yii2-widget-touchspin

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle touchspines (sub repo split from yii2-widgets)

184.1M6](/packages/kartik-v-yii2-widget-touchspin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
