nukefromorbit/nuke-php
Composer 安装命令:
composer require nukefromorbit/nuke-php
包简介
Nuke PHP library
关键字:
README 文档
README
Domain Verify
- .well-known file
sequenceDiagram participant nuke as Nuke participant service as Service Domain note over service: create {your service domain}/.well-known/nuke-verify/{nuke token}<br><br>payload:<br>{nuke token} nuke ->> service: GET {your service domain}/.well-known/nuke-verify/{nuke token} service -->> nuke: headers:<br>Status-Code: 200 OK<br><br>payload:<br>{nuke token} note over service: delete {your service domain}/.well-known/nuke-verify/{nuke token}Loading - DNS
sequenceDiagram participant nuke as Nuke participant service as Service Domain note over service: create TXT DNS for _nuke_verify.{your service domain}<br><br>payload:<br>{nuke token} nuke ->> service: CHECK TXT DNS _nuke_verify.{your service domain} for {nuke token} service -->> nuke: Domain is verified note over service: delete TXT DNS for _nuke_verify.{your service domain}Loading
Browser & Webhook Authorize Event
Nuke > Service > Nuke
sequenceDiagram
participant nuke as Nuke
participant service as Service
participant service_api as Service API
nuke ->> service: {service url}<br>?type=authorize<br>&source=nuke<br>&nuke_identifier={nuke identifier}<br>&nuke_token={nuke token}<br>&redirect_uri={nuke app url}
note over service: nuke_token: Event::construct(BrowserAuthorizeEvent::class)
note over service: service_token: generated by your service
service ->> nuke: {nuke app url}<br>?type=authorize<br>&source=nuke<br>&nuke_identifier={nuke identifier}<br>&nuke_token={nuke token}<br>&service_token={service token}
nuke ->> service_api: POST {service api webhook url}<br><br>headers:<br>X-Nuke-Identifier: {nuke identifier}<br>X-Nuke-Signature: t={current time}, v={signature}<br><br>payload (json):<br>{event: {type: authorize, data: {token: {service token}}}}
note over service_api: Event::construct(WebhookAuthorizeEvent::class)
note over service_api: verify/identify and set as active service_token
service_api -->> nuke: headers:<br>Status-Code: 204 No Content
Loading
Service > Nuke > Service
sequenceDiagram
participant service as Service
participant nuke as Nuke
participant service_api as Service API
note over service: service_token: generated by your service
service ->> nuke: {nuke app url}<br>?type=authorize<br>&source=service<br>&nuke_identifier={nuke identifier}<br>&service_token={service token}<br>&redirect_uri={service url}
nuke ->> service_api: POST {service api webhook url}<br><br>headers:<br>X-Nuke-Identifier: {nuke identifier}<br>X-Nuke-Signature: t={current time}, v={signature}<br><br>payload (json):<br>{event: {type: authorize, data: {token: {service token}}}}
note over service_api: Event::construct(WebhookAuthorizeEvent::class)
note over service_api: verify/identify and set as active service_token
service_api -->> nuke: headers:<br>Status-Code: 204 No Content
nuke ->> service: {service url}
Loading
Webhook Revoke Event
sequenceDiagram
participant nuke as Nuke
participant service_api as Service API
nuke ->> service_api: POST {service api webhook url}<br><br>headers:<br>X-Nuke-Identifier: {nuke identifier}<br>X-Nuke-Signature: t={current time}, v={signature}<br><br>payload (json):<br>{event: {type: revoke, data: {token: {service token}}}}
note over service_api: Event::construct(WebhookRevokeEvent::class)
note over service_api: verify/identify and set as revoked service_token
service_api -->> nuke: headers:<br>Status-Code: 204 No Content
Loading
Webhook Nuke Event
sequenceDiagram
participant nuke as Nuke
participant service_api as Service API
nuke ->> service_api: POST {service api webhook url}<br><br>headers:<br>X-Nuke-Identifier: {nuke identifier}<br>X-Nuke-Signature: t={current time}, v={signature}<br><br>payload (json):<br>{event: {type: nuke, data: {token: {service token}}}}
note over service_api: Event::construct(WebhookNukeEvent::class)
note over service_api: verify/identify and perform nuke action based on service_token
service_api -->> nuke: headers:<br>Status-Code: 204 No Content
Loading
nukefromorbit/nuke-php 适用场景与选型建议
nukefromorbit/nuke-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 389 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 11 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「nuke」 「nuke from orbit」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nukefromorbit/nuke-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nukefromorbit/nuke-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nukefromorbit/nuke-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Allow packages to be installed from a repository or tarball bundle that have multiple packages in the sub-folders
Backend extension for the Contao Open Source CMS. Import data records from a CSV spreadsheet.
instead of `php bin/console doctrine:mapping:import`
Kv storage based on modular development
Complete path management solution for PHP applications with zero dependencies, built-in filesystem operations, enhanced security, framework presets (Laravel, Slim4, Mezzio), and comprehensive validation
Shared Orbit core contracts and helpers.
统计信息
- 总下载量: 389
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-08