百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
K

Koriym.PhpSkeleton

> 编程语言
开源

带有高质量工具的现代 PHP 包骨架

180 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

带有高质量工具的现代 PHP 包骨架

A standard PHP project skeleton

Are you tired of copy-pasting your boilerplate PHP code whenever you need to start a new project?

This repository contains a single-line command that will automatically setup for you all the needed code to create a modern, clutter-free and test-oriented PHP package.

It will automatically install the following dependencies:

  • PHPUnit: provides testing framework.
  • PHP_CodeSniffer: detects violations of a defined set of coding standards.
  • PHPMD: analyze your code to detect sub-optimal or overly complex code.
  • PHPStan: discover bugs in your code without running it.
  • Psalm: - another static analysis tool from Vimeo.
  • Infection: mutation testing framework to evaluate test quality.
  • ComposerRequireChecker Check composer dependencies.

Project Structure

After installation, your project will have the following structure:

…

Create Project

To create your project, enter the following command in your console:

composer create-project koriym/php-skeleton 

You will be asked a few questions to configure the project:

What is the vendor name ?
(MyVendor):Koriym

What is the package name ?
(MyPackage):AwesomePackage

What is your name ?
(Akihito Koriyama):

What is your email address ?
([email protected]):

You can also skip the prompts by setting environment variables:

VENDOR=MyVendor PACKAGE=MyPackage composer create-project koriym/php-skeleton 

Composer Commands

Once installed, the project will automatically be configured, so you can run these commands in the root of your application:

test

composer test runs phpunit.

tests

composer tests runs cs, sa, and test.

coverage, phpdbg, pcov

composer coverage builds a test coverage report using XDebug. composer phpdbg builds a test coverage report using phpdbg. composer pcov builds a test coverage report using pcov.

mutation

composer mutation runs mutation testing using Infection.

cs, cs-fix

composer cs checks coding standard. composer cs-fix fixes the PHP code to match coding standards.

sa

composer sa runs static code analysis tools (PHPStan and Psalm).

build

composer build builds all reports (code quality, test coverage, require check).

Continuous Integration

This project includes several GitHub Actions workflows to ensure code quality and compatibility:

  • Continuous Integration: Runs tests on PHP 8.2, 8.3, 8.4 and 8.5
  • Static Analysis: Runs PHPStan, Psalm, PHPMD, and ComposerRequireChecker
  • Coding Standards: Checks code style with PHP_CodeSniffer
  • Mutation Testing: Runs Infection to evaluate test quality (on 1.x branch and PRs)

These workflows are pre-configured for common PHP project needs, but feel free to modify or remove them to suit your project's requirements.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPphpskeleton

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言