mrhdolek/php-vanilla-boilerplate

php-vanilla-boilerplate

dev-main 2025-06-08 21:14 UTC

This package is auto-updated.

Last update: 2025-06-08 21:17:06 UTC


README

PHP License

A simple PHP Vanilla Boilerplate for modern web development

Clean, simple, and modern PHP boilerplate with Docker support, testing, and development tools.

Project setup

Development

If you have problems with permissions please add sudo before make example:

  • sudo make install
  • sudo make start

Run env for Mac/Linux

  • make install
  • make start

Run env for Windows

Please install packages makefile for Windows

  • make install
  • make start

Address where the environment is available

  • http://localhost:8000

All commands

  • make help

Running tests

# Run all tests
composer test

Code quality tools

The boilerplate includes several code quality tools:

  • PHPStan - Static analysis tool
  • PHP-CS-Fixer - Code style fixer
  • PHPUnit - Testing framework

Running development server

# Using PHP built-in server
php -S localhost:8000 -t public/

Dependency management

# Install dependencies
composer install

# Update dependencies
composer update

# Add new dependency
composer require vendor/package

# Add development dependency
composer require --dev vendor/package

Documentation

Learn more about the tools used in this boilerplate: