定制 loadsys/puphpet-release 二次开发

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

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

loadsys/puphpet-release

最新稳定版本:0.1.0

Composer 安装命令:

composer require loadsys/puphpet-release

包简介

Makes an unpacked version of the vagrant environment generated by puphpet.com available through composer and Packagist.DANGEROUS! Overwrites non-vendor files in your project! Seriously, don't use this, or at least read the readme VERY carefully.

README 文档

README

Makes an unpacked version of the vagrant environment generated by puphpet.com available via composer and Packagist.

This repo represents a snapshot of the PuPHPet project. It includes minimal tooling designed to fetch a copy of the PuPHPet release ZIP file and import it back into this project. This project includes a composer.json file, making it possible to include puphpet in another target project using composer.

There are a still a number of things that could stand to improve. For those, see:

⚠️ Big Important Warning ⚠️

This package uses a composer custom installer that does very non-standard, typically bad, things, including overwriting files in your project outside of the vendor/ directory.

This is something that composer very explicitly says we should not be doing. We break this very good and wise rule only because the tools we're working with (vagrant and puphpet) leave us with no other practical choice.

Using this package will cause any root level /Vagrantfile and /puphpet/ folder in your existing project to be unceremoniously overwritten without notice, and a /.gitignore to be created or modified. Do not complain about this. This is what this package is designed to do and you've been duly warned of its danger.

Requirements

  • composer
  • vagrant
  • A project of your own in which you'd like to use PuPHPet via composer.

Installation

Run the following command to include the vagrant environment provided by PuPHPet in your project:

$ composer require --dev "phpfu/puphpet:@stable"

Usage

Once you've included the package as instructed above, you should be able to run vagrant with the default configuration immediately:

vagrant up

Customizing

To customize the vagrant box, you have two choices:

  • Copy the default /puphpet/config.yaml file provided to /puphpet.yaml and edit it to suit your needs. When an existing /puphpet.yaml file is found in your project, it will be copied to /puphpet/config.yaml for this package to use.

or

  • You can generate an appropriate config.yaml file using the puphpet.com web interface. Once you download the resulting puphpet.zip file, take just the puphpet/config.yaml file and save it into your project as puphpet.yaml.

In either case, your puphpet.yaml file should be committed to your own project's source control system so the vagrant virtual machine remains identical for all developers on the project.

@TODO: What about files/ and exec-* scripts?

Running the release scraper

This project includes a shell script designed to fetch the latest puphpet.zip file from puphpet.com, unpack it, and commit it back into this repo.

git clone git@github.com:loadsys/puphpet-release.git
cd puphpet-release
bin/scrape-release.sh

This script is intended be scheduled to run via cron to update the repo periodically. It must be run from a clone of the remote repo that Packagist is aware of and that has ssh permission to push back to the remote repository.

Packagist expects semantic versioning, and this presents a challenge. The puphpet.com project does not conform to semver and the project makes backwards-incompatible changes frequently. To work around this, the release script automatically tags each new version using a minor number. This allows consuming projects to target a specific point release that will never auto-update in a breaking way.

The consequence is that consuming projects must manually update their targeted version and verify it is still operational for their needs (as well as check that their puphpet.yaml file is up to date.)

Contributing

See the Contributing section of the loadsys/puphpet-release-composer-installer package for instructions on working with these two projects.

License

MIT. In particular, all PuPHPet work belongs to the original authors. This project is strictly for our own convenience.

Copyright

© Loadsys Web Strategies 2015

loadsys/puphpet-release 适用场景与选型建议

loadsys/puphpet-release 是一款 基于 Ruby 开发的 Composer 扩展包,目前已累计 32 次下载、GitHub Stars 达 4, 最近一次更新时间为 2015 年 02 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 loadsys/puphpet-release 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 9
  • Forks: 1
  • 开发语言: Ruby

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-12