承接 johannschopplich/kirby-deploy-trigger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

johannschopplich/kirby-deploy-trigger

Composer 安装命令:

composer require johannschopplich/kirby-deploy-trigger

包简介

Kirby Panel plugin to trigger deployments on any platform

README 文档

README

Kirby Deploy Trigger screenshot

Kirby Deploy Trigger

A Kirby Panel view button to trigger deployments on any CI/CD service, such as Vercel, Netlify, or GitHub Actions.

This is especially useful when you want to trigger a deployment after updating the content in the Panel from your headless Kirby setup. The button sends a request to the specified URL, which can be used to trigger a deployment on your CI/CD service.

Requirements

  • Kirby 4 or Kirby 5

Kirby is not free software. However, you can try Kirby and the Starterkit on your local machine or on a test server as long as you need to make sure it is the right tool for your next project. … and when you're convinced, buy your license.

Installation

Composer

composer require johannschopplich/kirby-deploy-trigger

Download

Download and copy this repository to /site/plugins/kirby-deploy-trigger.

Getting Started

Webhook Setup

Create a webhook in your CI/CD service to listen for incoming requests. The webhook URL is the URL you need to specify in the johannschopplich.deploy-trigger.deployUrl option in the config.php file:

# /site/config/config.php
return [
    'johannschopplich.deploy-trigger' => [
        'deployUrl' => 'https://api.example.com/deploy',
    ]
];

Tip

The deployUrl is sent as a POST request by default. You can change the request method with the requestOptions option.

Blueprint Setup

Kirby 5 introduces new extensions that allow you to add custom view buttons to most Panel views (e.g. page, site, or file). The Deploy Trigger plugin provides a button that can be added alongside the default buttons, such as the preview button or the language dropdown.

To add the deploy-trigger button to a particular view, set the buttons option in the corresponding blueprint. The following example shows how to reference the default buttons and add the deploy-trigger button to the site blueprint:

# /site/blueprints/site.yml
buttons:
  - deploy-trigger # Re-order the button as needed
  - preview

This way, you can reference the default buttons and decide where to place the deploy-trigger button.

Tip

Kirby 4 does not support custom view buttons, but the deploy-trigger button has been backported 🎉. It is always prepended to the default buttons and cannot be moved.

Configuration

Each configuration option is available in the config.php file.

The following table lists all available options:

Option Default Description
deployUrl null The URL to trigger the deployment.
requestOptions [] Additional headers or a specific method to send the request.

Cookbook

Trigger a Vercel Deployment

To create a Deploy Hook for your project, make sure your project is connected to a Git repository.

Once your project is connected, navigate to its Settings page and then select the Git menu item.

In the "Deploy Hooks" section, choose a name for your Deploy Hook and select the branch that will be deployed when the generated URL is requested.

Create Vercel deploy hooks

After submitting the form, you will see a URL that you can copy and use as the deployUrl option in the config.php file.

License

MIT License © 2025-PRESENT Johann Schopplich

johannschopplich/kirby-deploy-trigger 适用场景与选型建议

johannschopplich/kirby-deploy-trigger 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.04k 次下载、GitHub Stars 达 18, 最近一次更新时间为 2025 年 01 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 johannschopplich/kirby-deploy-trigger 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

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