PHPackages                             raphhh/php-app-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-app-bootstrap

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

raphhh/php-app-bootstrap
========================

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

1.0.0(11y ago)136MITApacheConfPHP &gt;=5.4

Since Apr 5Pushed 11y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PHP Web Application Bootstrap
=============================

[](#php-web-application-bootstrap)

[![Latest Stable Version](https://camo.githubusercontent.com/0a9b7f139e4ba0c4c2fbe73d6176e20fd9b686d0aed7a335a1bd82051648a13c/68747470733a2f2f706f7365722e707567782e6f72672f7261706868682f7068702d6170702d626f6f7473747261702f762f737461626c652e737667)](https://packagist.org/packages/raphhh/php-app-bootstrap)[![Build Status](https://camo.githubusercontent.com/f7f0afdf29c17775e5f57df1749ed50d65f9ed7551938c4cfd10bea825620b6d/68747470733a2f2f7472617669732d63692e6f72672f5261706868682f7068702d6170702d626f6f7473747261702e706e67)](https://travis-ci.org/Raphhh/php-app-bootstrap)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/eb6984b516c04caf9318f3aa46f77fe689531834d518c04ee4283b800e5c458d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5261706868682f7068702d6170702d626f6f7473747261702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Raphhh/php-app-bootstrap/)[![Code Coverage](https://camo.githubusercontent.com/3f18974e042f1aac2488ed5295a044cc64438db46419a8c26235d51983139bdc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5261706868682f7068702d6170702d626f6f7473747261702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Raphhh/php-app-bootstrap/)[![Total Downloads](https://camo.githubusercontent.com/e54e0afb7a7dd653adec7967792d52677a008b38190816686276e90d9fdbae4e/68747470733a2f2f706f7365722e707567782e6f72672f7261706868682f7068702d6170702d626f6f7473747261702f646f776e6c6f6164732e737667)](https://packagist.org/packages/raphhh/php-app-bootstrap)[![License](https://camo.githubusercontent.com/6d95fa6cc711fd7fe8f9a03520f56e0d701f37a947edac9fd079851f6b4bc4e1/68747470733a2f2f706f7365722e707567782e6f72672f7261706868682f7068702d6170702d626f6f7473747261702f6c6963656e73652e737667)](https://packagist.org/packages/raphhh/php-app-bootstrap)

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

About
-----

[](#about)

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

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)

```
├── 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](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 'app' bootstrap.

```
$ samurai new app

```

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

```

### Launch app in the browser

[](#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:

```
$ run

```

This command will launch for you the PHP internal server. Then, open your browser and go to

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

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 (16 commits)")

---

Tags

bootstrapsamurai

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/raphhh-php-app-bootstrap/health.svg)](https://phpackages.com/packages/raphhh-php-app-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)
