定制 imliam/setuphp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

imliam/setuphp

最新稳定版本:v0.1.3

Composer 安装命令:

composer create-project imliam/setuphp

包简介

A tool to set up a PHP project quickly

README 文档

README

Get up-and-running with a new PHP project in seconds. Setuphp is a CLI tool designed to scaffold and streamline new PHP projects by setting up Git repositories, CI workflows, and common development tooling—all through a series of interactive prompts.

Features

  • Git Integration: Initialize a local Git repository, create an initial commit, and set up a remote repository. If the GitHub CLI is installed, Setuphp can automatically create a remote repository for you.

  • CI Workflow Setup: Automatically generate CI configuration files for GitHub Actions or GitLab CI by detecting your project's remote repository and available tools (such as Pest, PHPUnit, PHPStan, or Psalm).

  • Tooling Installation: Install popular test frameworks (Pest or PHPUnit), browser testing tools (Laravel Dusk or Laracasts Cypress for Laravel apps), static analysis tools (PHPStan with Larastan or Psalm with its Laravel plugin), and code style tools (php-cs-fixer or Laravel Pint) based on your preferences.

  • Interactive Setup: Designed to work in your existing PHP project. Setuphp uses interactive prompts to guide you through configuring your project, from creating a composer.json file (if missing) to installing and configuring dependencies.

Installation

Setuphp requires PHP. Using Composer, you can install Setuphp globally with the following command:

composer global require imliam/setuphp

Alternatively, you can use cpx to run Setuphp:

cpx imliam/setuphp

Usage

Run the setuphp command in the root directory of your PHP project to start the interactive setup process that will walk you through everything:

setuphp

Alternatively, you can run individual commands if you want to focus on only certain steps:

setuphp git
setuphp ci
setuphp tooling

统计信息

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

GitHub 信息

  • Stars: 33
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固