alcidesrc/php-skeleton 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

alcidesrc/php-skeleton

Composer 安装命令:

composer create-project alcidesrc/php-skeleton

包简介

Application skeleton for projects based on PHP

README 文档

README

Continuous Integration

PHP Skeleton

An application skeleton for modern PHP projects, PoC, side-projects...

[TOC]

Summary

This repository contains an application skeleton following best practices.

Highlights

  • Minimalist project
  • Includes frequently used tools such as a Linter, PHPStan, PHPUnit, CodeSniffer and VarDumper.

Requirements

To use this repository you need:

Software

  • Git - The free and open source distributed version control system.

Built with

This project was built with Dockerized PHP, a lightweight dockerized environment to build PHP applications.

Getting Started

Just clone the repository into your preferred path:

$ mkdir -p ~/path/to/my-new-project && cd ~/path/to/my-new-project
$ git clone git@github.com:alcidesrc/php-skeleton.git .

Conventions

Directory structure

.
├── app                 # Your application business logic goes here
├── composer.json       # Application dependencies main file
├── composer.lock       # Application dependencies locked file
├── LICENSE
├── Makefile
├── phpcs.xml           # PHPCS configuration file
├── phpstan.neon        # PHPStan configuration file
├── phpunit.xml         # PHPUnit configuration file
├── public              # Public folder
├── README.md
├── tests               # Tests folder
└── vendor

Composer commands

Custom commands are added to composer.json under the scripts section.

Available commands
Command Description
linter Runs the linter in parallel mode
phpcs Runs PHP Check Style command following the PSR-12
phpcbf Runs PHP Code Beautifier and Fixer command following the PSR-12
phpstan Runs PHPStan with the specs defined at phpstan.neon configuration file
phpunit Runs PHPUnit with the specs defined at phpunit.xml configuration file
tests Runs PHPUnit without code coverage support
coverage Runs PHPUnit with PCOV code coverage support

Makefile

Additionally a Makefile is provided with frequently used commands:

~/path/to/my-new-project$ make

╔════════════════════════════════════════════════════════════════════════════════════════════════╗
║                                                                                                ║
║ 	                                 .: AVAILABLE COMMANDS :.                                    ║
║                                                                                                ║
╚════════════════════════════════════════════════════════════════════════════════════════════════╝

· composer-dump                  Composer: executes <composer dump-auto> inside the container
· composer-install               Composer: executes <composer install> inside the container
· composer-remove                Composer: executes <composer remove> inside the container
· composer-require-dev           Composer: executes <composer require --dev> inside the container
· composer-require               Composer: executes <composer require> inside the container
· composer-update                Composer: executes <composer update> inside the container
· check-syntax                   QA: executes <check-syntax> inside the container
· check-style                    QA: executes <check-style> inside the container
· fix-style                      QA: executes <fix-style> inside the container
· phpstan                        QA: executes <composer phpstan> inside the container
· test                           QA: executes <composer test> inside the container
· coverage                       QA: executes <composer coverage> inside the container
Installing Dependencies
$ make composer-install
Running the Test Cases
$ make test

Volumes

Coverage report in HTML

Coverage report in HTML is generated on a root folder /.coverage

Tip

If you want the report is generated on a different path, just update accordingly the composer.json file under the section scripts

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities:

PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY

Supported Versions

Only the latest major version receives security fixes.

Reporting a Vulnerability

If you discover a security vulnerability within this project, please open an issue here. All security vulnerabilities will be promptly addressed.

License

The MIT License (MIT). Please see LICENSE file for more information.

alcidesrc/php-skeleton 适用场景与选型建议

alcidesrc/php-skeleton 是一款 基于 Makefile 开发的 Composer 扩展包,目前已累计 61 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 08 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「bootstrap」 「TDD」 「boilerplate」 「ddd」 「Skeleton」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 alcidesrc/php-skeleton 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 alcidesrc/php-skeleton 我们能提供哪些服务?
定制开发 / 二次开发

基于 alcidesrc/php-skeleton 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: Makefile

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-24