PHPackages                             jeffpascal/php-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. jeffpascal/php-bootstrap

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

jeffpascal/php-bootstrap
========================

Starting point if you want to bootstrap a project in PHP following best practices.

00PHP

Since Nov 25Pushed 3y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Bootstrap (base / project skeleton)
=======================================

[](#php-bootstrap-base--project-skeleton)

[![Latest Version on Packagist](https://camo.githubusercontent.com/dc81063d47a9f3378074c649d91741e5b0b25188b9df9560477a155da35df2d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656c7974762f7068702d626f6f7473747261702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codelytv/php-bootstrap)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/8d3b397322108844aeab56ab11f82e5411bbd970e01052213f4b63dd532dcd22/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f436f64656c7954562f7068702d626f6f7473747261702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/CodelyTV/php-bootstrap)[![Quality Score](https://camo.githubusercontent.com/4349b65a9474f4b8629b55b952ec3e8222636d73feb08886dff5c32ccaa9b9b0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f436f64656c7954562f7068702d626f6f7473747261702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/CodelyTV/php-bootstrap)[![Total Downloads](https://camo.githubusercontent.com/79c1b865a480b5c4b2c90fcd0ab0d8b7daaea149a64d0b5d692c19a1fdade507/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656c7974762f7068702d626f6f7473747261702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codelytv/php-bootstrap)

Introduction
------------

[](#introduction)

This is a repository intended to serve as a starting point if you want to bootstrap a project in PHP. This repository has been explained in the [CodelyTV video "Introducción a PHP: Cómo configurar tu entorno de desarrollo 🐘" (Spanish)](https://www.youtube.com/watch?v=v2IjMrpZog4).

It could be useful if you want to start from scratch a kata or a little exercise or project. The idea is that you don't have to worry about the boilerplate, just run `composer create-project codelytv/php-bootstrap your-project-name` and there you go:

- Latest versions of PHP and PHPUnit
- Best practices applied:
    - [`README.md`](README.md) (badges included)
    - [`LICENSE`](LICENSE)
    - [`composer.json`](composer.json)
    - [`phpunit.xml`](phpunit.xml)
    - [`.gitignore`](.gitignore)
    - [`.editorconfig`](.editorconfig)
    - \[`.travis.yml`\]\[link-travis-yml\]
    - [`.scrutinizer.yml`](.scrutinizer.yml)
- Some useful resources to start coding

How To Start
------------

[](#how-to-start)

You have 2 different alternatives: Using our [Packagist project](https://packagist.org/packages/codelytv/php-bootstrap) with Composer, or manually cloning [this repo](https://github.com/CodelyTV/php-bootstrap/):

### Using Composer

[](#using-composer)

Start completely from scratch without having to delete this bootstrap project Git history:

1. If you don't have it already, [install Composer](https://getcomposer.org/download/).
2. Create your project based on the [Packagist project](https://packagist.org/packages/codelytv/php-bootstrap). This will also download the project dependencies: `composer create-project codelytv/php-bootstrap your-project-name`.
3. Move to the project directory: `cd your-project-name`
4. Run all the checks: `composer test`. This will do some checks that you can perform with isolated commands:
    1. [PHP Parallel Lint](https://github.com/JakubOnderka/PHP-Parallel-Lint): `composer lint`.
    2. [PHP Style Check](https://github.com/squizlabs/PHP_CodeSniffer): `composer style`. If you want to fix style issues automatically: `composer fix-style`.
    3. [PHP Unit](https://phpunit.de/): `composer phpunit`.
5. Create your own repository:
    1. Initialize your own Git repository: `git init`
    2. Add the bootstrap files: `git add .`
    3. Commit: `git commit -m "Initial commit with project boilerplate based on https://github.com/CodelyTV/php-bootstrap"`
    4. Add your remote repository: `git remote add origin git@github.com:your-username/your-project-name`
    5. Upload your local commits to the new remote repo: `git push -u origin master`
6. Start coding!

### Cloning the repository

[](#cloning-the-repository)

Just in case you prefer to avoid dealing with `composer create-project`, you can also clone this repository. We recommend to follow the next step by step process in order to avoid adding the bootstrap project commits to your project Git history:

1. [Use this repositoy template](https://github.com/CodelyTV/php-basic-skeleton/generate)
2. Clone your project
3. Move to the project directory: `cd your-project-name`
4. If you don't have it already, [install Composer](https://getcomposer.org/download/).
5. Install the project dependencies: `composer install`
6. Run all the checks: `composer test`. This will do some checks that you can perform with isolated commands:
    1. [PHP Style Check](https://github.com/squizlabs/PHP_CodeSniffer): `composer style`. If you want to fix style issues automatically: `composer fix-style`.
    2. [PHP Unit](https://phpunit.de/): `composer phpunit`.
7. Start coding!

Helpful resources
-----------------

[](#helpful-resources)

### PHP 7

[](#php-7)

- [PHP 7 new features](http://php.net/manual/en/migration70.new-features.php)
- [Scalar type declarations example](https://github.com/tpunt/PHP7-Reference#scalar-type-declarations)
- [Return type declarations example](https://github.com/tpunt/PHP7-Reference#return-type-declarations)

### PHPUnit

[](#phpunit)

- [Introduction to writing tests for PHPUnit](https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html)
- [Testing exceptions with PHPUnit](https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.exceptions)
- [PHPUnit assertions](https://phpunit.de/manual/current/en/appendixes.assertions.html)

### Refactoring

[](#refactoring)

- [Refactoring.guru Code Smells catalog](https://refactoring.guru/smells/smells)
- [Refactoring.guru Refactorings catalog](https://refactoring.guru/catalog)
- [SourceMaking Refactorings catalog](https://sourcemaking.com/refactoring)
- [Martin Fowler Refactorings catalog](http://refactoring.com/catalog/)
- [CodelyTV Refactoring videos (Spanish)](http://codely.tv/tag/refactoring/)

Other programming languages
---------------------------

[](#other-programming-languages)

- [PHP](https://github.com/CodelyTV/php-bootstrap)
- [Scala](https://github.com/CodelyTV/scala_bootstrap)

About
-----

[](#about)

This hopefully helpful utility has been developed by [CodelyTV](https://github.com/CodelyTV) and \[contributors\]\[link-contributors\].

We'll try to maintain this project as simple as possible, but Pull Requests are welcomed!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5fa74754150491f39791f5d31d218ecf66b71687a1b865c8f193572d4f6090f?d=identicon)[jeffpascal](/maintainers/jeffpascal)

---

Top Contributors

[![JavierCane](https://avatars.githubusercontent.com/u/986235?v=4)](https://github.com/JavierCane "JavierCane (30 commits)")[![rgomezcasas](https://avatars.githubusercontent.com/u/1331435?v=4)](https://github.com/rgomezcasas "rgomezcasas (3 commits)")[![juanmiguelbesada](https://avatars.githubusercontent.com/u/295490?v=4)](https://github.com/juanmiguelbesada "juanmiguelbesada (2 commits)")[![jeffpascal](https://avatars.githubusercontent.com/u/15276887?v=4)](https://github.com/jeffpascal "jeffpascal (1 commits)")

### Embed Badge

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

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

###  Alternatives

[pelmered/fake-car

Fake-Car is a Faker provider that generates fake car data for you.

1271.2M2](/packages/pelmered-fake-car)

PHPackages © 2026

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