承接 mrhdolek/php-vanilla-boilerplate 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mrhdolek/php-vanilla-boilerplate

Composer 安装命令:

composer create-project mrhdolek/php-vanilla-boilerplate

包简介

php-vanilla-boilerplate

README 文档

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

You can run this project using either Docker (via Make commands) or Nix. Choose the option that best fits your workflow.

🐳 Docker Environment

Prerequisites

  • Docker and Docker Compose
  • Make (for Windows: install from here)

Setup and Usage

Development

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

  • sudo make install
  • sudo make start

Mac/Linux

make install
make start

Windows

make install
make start

Address where the environment is available

  • http://localhost:8000

All Docker commands

  • make help - Show all available commands

❄️ Nix Environment

Prerequisites

Setup and Usage

Enter development environment

# Enter the Nix shell (automatically installs all dependencies)
nix-shell

Development workflow with Nix

# Enter Nix shell
nix-shell

# Check PHP version and path
type php
php --version

# Install PHP dependencies
composer install

# Start development server
php -S localhost:8000 -t public/

# Run tests
composer test

# Code quality checks
composer phpstan
composer cs-fix

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:

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: Nix

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-08