定制 shudd3r/skeleton-example 二次开发

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

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

shudd3r/skeleton-example

最新稳定版本:1.0.0

Composer 安装命令:

composer require shudd3r/skeleton-example

包简介

Package skeleton demo using Shudd3r/Skeletons

README 文档

README

Latest Stable Version PHP version LICENSE

Package skeleton demo using Shudd3r/Skeletons

Skeleton package built to illustrate how it can be managed by script that uses shudd3r/skeletons library.

Installation

It is recommended to use it globally as an exacutable application - downloaded example-skeleton.phar archive from the latest release asset files and placed it in one of the operating system's PATH directories. More on Windows executable .phar files here.

Download file

During deployment process or for a small number of projects you can install this package with Composer as one of package's dev dependencies:

composer require --dev shudd3r/skeleton-example

Note that using this method will require you to download this package for each project using the skeleton.

Basic Usage

To use skeleton application, run the script from the root directory of your project. If you installed it globally as example-skeleton.phar and made it executable by your operating system, you can simply run example-skeleton instead of vendor/bin/example-skeleton in the examples below.

  • Display help message with usage details (help command is optional):
    vendor/bin/example-skeleton help
  • Initialize package with skeleton files providing template replacement values through interactive shell:
    vendor/bin/example-skeleton init
  • Validate project's consistency with skeleton (can be added to CI workflow):
    vendor/bin/example-skeleton check
  • Update placeholders through interactive shell or using provided argument:
    vendor/bin/example-skeleton update
    vendor/bin/example-skeleton update ns=UpdatedNamespace\Package
  • Synchronize files with template:
    vendor/bin/example-skeleton sync

Windows executable

To run the script globally from console with simple example-skeleton command:

  1. You need to place downloaded .phar file in one of (executable) PATH directories or add new one to directory list in %PATH% environment variable. You can change environment variables by running:
    SystemPropertiesAdvanced.exe
  2. Windows doesn't support shebang parsing, so files that can't be executed directly need to be assigned to their interpreter manually. The easiest way to make concrete .phar file executable is to create .bat runner file with the following command:
    echo '@php "%~dp0example-skeleton.phar" %*' > example-skeleton.bat

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-05