PHPackages                             myvariety/wisp-sdk - 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. [API Development](/categories/api)
4. /
5. myvariety/wisp-sdk

ActiveSdk[API Development](/categories/api)

myvariety/wisp-sdk
==================

Wisp SDK

1.0.1(3y ago)07proprietaryPHPPHP &gt;=5.4.0

Since May 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MyVariety/wisp-sdk)[ Packagist](https://packagist.org/packages/myvariety/wisp-sdk)[ RSS](/packages/myvariety-wisp-sdk/feed)WikiDiscussions master Synced 1mo ago

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

Wisp SDK
========

[](#wisp-sdk)

This is an SDK that integrates with APIs from [Pterodactyl](https://pterodactyl.com/) [Pterodactyl v0.7 API Docs](https://dashflo.net/docs/api/pterodactyl/v0.7/#introduction). Will eventually support the Wisp API

Installation | COMING SOON
--------------------------

[](#installation--coming-soon)

You can install the SDK via composer:

```
composer require myvariety/wisp-sdk

```

Usage
-----

[](#usage)

### Initializing the API

[](#initializing-the-api)

```
$useSsl = true;
$api = new \MyVariety\WispSDK\WispApi('API_KEY', 'PANEL_URL', $useSsl);

```

One thing to note is that the Pterodactyl Panel has two API's: The application API and the account API. The account API/key should be used to access the Client requestor, while the application API/key should be used for all other requestors.

### Loading a Requestor

[](#loading-a-requestor)

Requestor definition: A class that the SDK uses to access API endpoints of a particular type (e.g. Servers, Nests, or Locations).

The SDK utilizes PHP's \_\_get() magic method so requestors can just be accessed as a property of the loaded api. For example:

```
$clientRequestor = $api->Client;

```

### Calling an Endpoint

[](#calling-an-endpoint)

All endpoints exist as a method on a requestor. For example, the application/locations/ endpoint would be called as follows:

```
$locationResponse = $api->Locations->getAll();

```

Or to call the same endpoint but with post parameters to add a new location, it would look like this:

```
$locationResponse = $api->Locations->add($parameters);

```

### Using a response object

[](#using-a-response-object)

The response object is meant to make it easier to Access the returned data and recognize when you have encountered errors. It has the following methods:

```
$locationResponse->raw(); // Useful for logging the full response from Pterodactyl
$locationResponse->response(); // The json decoded data returned
$locationResponse->headers(); // An array of http headers returned
$locationResponse->status(); // The status code returned
$locationResponse->errors(); // An array of the errors returned

```

The most used methods are typically response() and errors()

```
$errors = $locationResponse->errors();
if (empty($errors)) {
    $locations = $locationResponse->response();
    ...
    ...
    ...
}

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Every ~6 days

Total

2

Last Release

1103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28b1d19686f165a22f861a2f81568ab1fdf978829c9a1a5ec206c7c2812a338d?d=identicon)[myvarietyllc](/maintainers/myvarietyllc)

---

Top Contributors

[![KadotyGamer](https://avatars.githubusercontent.com/u/19276001?v=4)](https://github.com/KadotyGamer "KadotyGamer (2 commits)")

### Embed Badge

![Health badge](/badges/myvariety-wisp-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/myvariety-wisp-sdk/health.svg)](https://phpackages.com/packages/myvariety-wisp-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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