PHPackages                             nukefromorbit/nuke-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nukefromorbit/nuke-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nukefromorbit/nuke-php
======================

Nuke PHP library

v1.0.0(1y ago)0389MITPHPPHP &gt;=8.3CI passing

Since Apr 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nukefromorbit/nuke-php)[ Packagist](https://packagist.org/packages/nukefromorbit/nuke-php)[ Docs](https://nuke.app/)[ RSS](/packages/nukefromorbit-nuke-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

nuke-php
========

[](#nuke-php)

[![Build Status](https://github.com/nukefromorbit/nuke-php/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/nukefromorbit/nuke-php/actions?query=branch%3Amain)[![Latest Stable Version](https://camo.githubusercontent.com/c8256604fb41e549e50cfcd0abef9b2effce8c8391fb18c6df5067330717c383/68747470733a2f2f706f7365722e707567782e6f72672f6e756b6566726f6d6f726269742f6e756b652d7068702f762f737461626c652e737667)](https://packagist.org/packages/nukefromorbit/nuke-php)[![License](https://camo.githubusercontent.com/57d0d52aa43c5a024256b300e4f6c869fcf0ac04451aa65f2c627dcd3a04c7a3/68747470733a2f2f706f7365722e707567782e6f72672f6e756b6566726f6d6f726269742f6e756b652d7068702f6c6963656e73652e737667)](https://packagist.org/packages/nukefromorbit/nuke-php)[![Code Coverage](https://camo.githubusercontent.com/6db8c2521592a19222be1fd02f70c63265d8fe096bbf6951757f377f26ce0f80/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6e756b6566726f6d6f726269742f6e756b652d7068702f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/r/nukefromorbit/nuke-php?branch=main)

Domain Verify
-------------

[](#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}payload:{nuke token}

        nuke ->> service: GET {your service domain}/.well-known/nuke-verify/{nuke token}

        service -->> nuke: headers:Status-Code: 200 OKpayload:{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}payload:{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 &amp; Webhook Authorize Event
-------------------------------------

[](#browser--webhook-authorize-event)

### Nuke &gt; Service &gt; Nuke

[](#nuke--service--nuke)

 ```
sequenceDiagram
    participant nuke as Nuke
    participant service as Service
    participant service_api as Service API

    nuke ->> service: {service url}?type=authorize&source=nuke&nuke_identifier={nuke identifier}&nuke_token={nuke token}&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}?type=authorize&source=nuke&nuke_identifier={nuke identifier}&nuke_token={nuke token}&service_token={service token}

    nuke ->> service_api: POST {service api webhook url}headers:X-Nuke-Identifier: {nuke identifier}X-Nuke-Signature: t={current time}, v={signature}payload (json):{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:Status-Code: 204 No Content
```

      Loading ### Service &gt; Nuke &gt; Service

[](#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}?type=authorize&source=service&nuke_identifier={nuke identifier}&service_token={service token}&redirect_uri={service url}

    nuke ->> service_api: POST {service api webhook url}headers:X-Nuke-Identifier: {nuke identifier}X-Nuke-Signature: t={current time}, v={signature}payload (json):{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:Status-Code: 204 No Content

    nuke ->> service: {service url}
```

      Loading Webhook Revoke Event
--------------------

[](#webhook-revoke-event)

 ```
sequenceDiagram
    participant nuke as Nuke
    participant service_api as Service API

    nuke ->> service_api: POST {service api webhook url}headers:X-Nuke-Identifier: {nuke identifier}X-Nuke-Signature: t={current time}, v={signature}payload (json):{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:Status-Code: 204 No Content
```

      Loading Webhook Nuke Event
------------------

[](#webhook-nuke-event)

 ```
sequenceDiagram
    participant nuke as Nuke
    participant service_api as Service API

    nuke ->> service_api: POST {service api webhook url}headers:X-Nuke-Identifier: {nuke identifier}X-Nuke-Signature: t={current time}, v={signature}payload (json):{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:Status-Code: 204 No Content
```

      Loading

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance46

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

411d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/856c8fd0fe89ac330f4a9b65394a9e655f0261330f43db26091483a0ed7f40a5?d=identicon)[aleee](/maintainers/aleee)

---

Top Contributors

[![aleeeftw](https://avatars.githubusercontent.com/u/7444008?v=4)](https://github.com/aleeeftw "aleeeftw (44 commits)")

---

Tags

nukenuke from orbit

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/nukefromorbit-nuke-php/health.svg)

```
[![Health](https://phpackages.com/badges/nukefromorbit-nuke-php/health.svg)](https://phpackages.com/packages/nukefromorbit-nuke-php)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
