PHPackages                             revoltify/spaceship-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. revoltify/spaceship-php

ActiveLibrary

revoltify/spaceship-php
=======================

Spaceship PHP Library

1.0.1(1y ago)04MITPHPPHP ^7.4 || ^8.0

Since Dec 21Pushed 1y agoCompare

[ Source](https://github.com/revoltify/spaceship-php)[ Packagist](https://packagist.org/packages/revoltify/spaceship-php)[ RSS](/packages/revoltify-spaceship-php/feed)WikiDiscussions 1.x Synced 1mo ago

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

Spaceship PHP Library
=====================

[](#spaceship-php-library)

A PHP library for interacting with the Spaceship API. This library provides a simple and intuitive way to manage domains, nameservers, contacts, and privacy settings.

Installation
------------

[](#installation)

```
composer require revoltify/spaceship-php
```

Basic Setup
-----------

[](#basic-setup)

```
use Spaceship\SpaceshipAPI;

$api = new SpaceshipAPI('api_key', 'api_secret');
```

Available Methods
-----------------

[](#available-methods)

### Domain Management

[](#domain-management)

```
// Get domain information
$api->domain('example.com');
```

### Nameserver Management

[](#nameserver-management)

```
// Update nameservers
$params = NameserverParams::make()
    ->setProvider('custom')
    ->setHosts(['ns1.example.com', 'ns2.example.com']);

$api->updateNameserver('example.com', $params);
```

### Authorization Code

[](#authorization-code)

```
// Get domain auth code
$api->authCode('example.com');
```

### Privacy Protection

[](#privacy-protection)

```
// Update privacy protection
$params = PrivacyProtectionParams::make()
    ->setPrivacyLevel(PrivacyLevel::PUBLIC); // or PrivacyLevel::HIGH

$api->updatePrivacyProtection('example.com', $params);
```

### Transfer Lock

[](#transfer-lock)

```
// Lock domain transfer
$params = TransferLockParams::make()->lock();

// Unlock domain transfer
$params = TransferLockParams::make()->unlock();

$api->updateTransferLock('example.com', $params);
```

### Contact Management

[](#contact-management)

```
// Create new contact
$params = CreateContactParams::make()
    ->setFirstName('John')
    ->setLastName('Doe')
    ->setEmail('john@doe.com')
    ->setAddress1('Dhaka')
    ->setCity('Dhaka')
    ->setCountryCode('BD')
    ->setPostalCode('1234')
    ->setPhone('+880.1333333333');

$api->createContact($params);

// Get contact information
$api->contact('5HebrteUuESDiv2TyC60yFpJw1oZ');

// Update contact
$params = UpdateContactParams::make()
    ->setRegistrant('1gFvGJ8mwW6t3lb2ovtUCP2YUDD')
    ->setAdmin('1gFvGJ8mwW6t3lb2ovtUCP2YUDD')
    ->setTech('1gFvGJ8mwW6t3lb2ovtUCP2YUDD')
    ->setBilling('1gFvGJ8mwW6t3lb2ovtUCP2YUDD');

$api->updateContact('example.com', $params);
```

Response Methods
----------------

[](#response-methods)

### DomainResponse

[](#domainresponse)

- Basic Information: `name()`, `unicodeName()`, `isPremium()`, `hasAutoRenew()`
- Dates: `registrationDate()`, `expirationDate()`, `getDomainAge()`
- Status: `verificationStatus()`, `eppStatuses()`, `isActive()`, `isSuspended()`
- Privacy: `privacyProtectionLevel()`, `hasContactForm()`, `hasHighPrivacy()`
- Nameservers: `nameserverProvider()`, `nameserverHosts()`
- Contacts: `contacts()`, `getContact()`, `getRegistrantId()`
- Expiration: `isExpired()`, `daysUntilExpiration()`

### NameserverResponse

[](#nameserverresponse)

- `success()`, `nameserverProvider()`, `nameserverHosts()`

### AuthCodeResponse

[](#authcoderesponse)

- `success()`, `authCode()`, `expireDate()`

### PrivacyProtectionResponse

[](#privacyprotectionresponse)

- `success()`

### TransferLockResponse

[](#transferlockresponse)

- `success()`

### CreateContactResponse

[](#createcontactresponse)

- `success()`, `contactId()`

### UpdateContactResponse

[](#updatecontactresponse)

- `success()`, `verificationStatus()`

### ContactResponse

[](#contactresponse)

- Personal: `firstName()`, `lastName()`, `organization()`, `email()`
- Address: `address1()`, `address2()`, `city()`, `state()`, `countryCode()`, `postalCode()`
- Phone: `phone()`, `phoneExt()`, `fax()`, `faxExt()`
- Other: `taxNumber()`

Error Handling
--------------

[](#error-handling)

```
try {
    $api = new SpaceshipAPI('api_key', 'api_secret');
} catch (SpaceshipException $e) {
    // Handle error
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance42

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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 ~0 days

Total

3

Last Release

504d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a6975c50488b3eeb7cb613bf0b280342ce3912dc4ffaa1aa14b75add8fe070a?d=identicon)[rtraselbd](/maintainers/rtraselbd)

---

Top Contributors

[![rtraselbd](https://avatars.githubusercontent.com/u/31556372?v=4)](https://github.com/rtraselbd "rtraselbd (3 commits)")

### Embed Badge

![Health badge](/badges/revoltify-spaceship-php/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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