Stars: 101
Forks: 47
Pull Requests: 31
Issues: 2
Watchers: 8
Last Updated: 2022-08-28 12:29:00
🐘🚀 PHP Basic Skeleton: Bootstrap your new projects using this Composer Project
License: MIT License
Languages: PHP
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).
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:
README.md
(badges included)LICENSE
composer.json
phpunit.xml
.gitignore
.editorconfig
.travis.yml
][link-travis-yml].scrutinizer.yml
You have 2 different alternatives: Using our Packagist project with Composer, or manually cloning this repo:
Start completely from scratch without having to delete this bootstrap project Git history:
composer create-project codelytv/php-bootstrap your-project-name
.cd your-project-name
composer test
. This will do some checks that you can perform with isolated commands:
composer lint
.composer style
. If you want to fix style issues automatically: composer fix-style
.composer phpunit
.git init
git add .
git commit -m "Initial commit with project boilerplate based on https://github.com/CodelyTV/php-bootstrap"
git remote add origin [email protected]:your-username/your-project-name
git push -u origin master
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:
cd your-project-name
composer install
composer test
. This will do some checks that you can perform with isolated commands:
composer style
. If you want to fix style issues automatically: composer fix-style
.composer phpunit
.This hopefully helpful utility has been developed by CodelyTV and [contributors][link-contributors].
We'll try to maintain this project as simple as possible, but Pull Requests are welcomed!
The MIT License (MIT). Please see License File for more information.