PHPackages                             questblue/genesis - 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. questblue/genesis

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

questblue/genesis
=================

The QuestBlue Genesis PHP SDK.

0.0.3(1y ago)091PHP

Since Feb 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/QuestBlue/genesis)[ Packagist](https://packagist.org/packages/questblue/genesis)[ RSS](/packages/questblue-genesis/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

QuestBlue Genesis
=================

[](#questblue-genesis)

A PHP library providing a fluent interface for interacting with the QuestBlue API. Built with PHP 8.2+ and modern programming practices.

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

[](#installation)

```
composer require questblue/genesis
```

Quick Start
-----------

[](#quick-start)

```
$genesis = Genesis::make()
    ->username('your-username')
    ->password('your-password')
    ->apiKey('your-api-key')
    ->sandbox(true); // Use false for production
```

Core Features
-------------

[](#core-features)

### Company Management

[](#company-management)

```
// Create a new company
$response = $genesis->secureFax()
    ->company()
    ->create('Acme Corporation');

$company = $response->dto();

// Get company details
$companyDetails = $genesis->secureFax()
    ->company()
    ->get($company->id);

// Update company
$genesis->secureFax()
    ->company()
    ->update($company->id, [
        'name' => 'Acme Corp Updated'
    ]);
```

### DID Management

[](#did-management)

```
// Create a new DID
$didResponse = $genesis->secureFax()
    ->did()
    ->create(
        number: '+1234567890',
        company: $company->id,
        name: 'Main Line'
    );

// Delete a DID
$genesis->secureFax()
    ->did()
    ->delete($didResponse->dto()->id);
```

### Administrator Management

[](#administrator-management)

```
// Create a new administrator
$adminResponse = $genesis->secureFax()
    ->manager()
    ->create(
        email: 'admin@example.com',
        password: 'secure-password',
        company: $company->id,
        fullName: 'John Doe'
    );
```

Configuration
-------------

[](#configuration)

### Environment Setup

[](#environment-setup)

```
// Development environment
$genesis = Genesis::make()
    ->username('username')
    ->password('password')
    ->apiKey('api-key')
    ->sandbox(true);

// Production environment
$genesis = Genesis::make()
    ->username('username')
    ->password('password')
    ->apiKey('api-key')
    ->sandbox(false);
```

Response Handling
-----------------

[](#response-handling)

All API responses are wrapped in response objects that provide access to both raw data and typed DTOs:

```
$response = $genesis->secureFax()
    ->company()
    ->create('New Company');

// Get the DTO
$company = $response->dto();

// Get the JSON decoded body of the response as an array or scalar value.
$jsonData = $response->json();

// Get the JSON decoded body as an array.
// Provide a key to find a specific item in the JSON.
$array = $response->array();

// Get the body of the response as string.
$body = $response->body();

// Create a PSR response from the raw response.
$psrResponse = $response->getPsrResponse();

// Get the PSR-7 request
$psrRequest = $response->getPsrRequest();

// Get the status code of the response.
$status = $response->status();

// Save the body to a file
$response->saveBodyToFile('response.txt');

// Check if request was successful
if ($response->successful()) {
    // Handle success
}

// Check if request failed
if ($response->failed()) {
    // Handle failure
}
```

Best Practices
--------------

[](#best-practices)

1. Use DTOs for type-safe data handling
2. Keep track of API keys

Contributing
------------

[](#contributing)

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

Support
-------

[](#support)

For support and questions, please contact .

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance44

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.6% 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 ~3 days

Total

3

Last Release

444d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce3a58f57e5a5e457ecab1b61b189e9aeeadce766083597e4e44ebe4e0d31615?d=identicon)[QuestBlue](/maintainers/QuestBlue)

---

Top Contributors

[![QuestBlue](https://avatars.githubusercontent.com/u/122127139?v=4)](https://github.com/QuestBlue "QuestBlue (5 commits)")[![ekmillard](https://avatars.githubusercontent.com/u/15122003?v=4)](https://github.com/ekmillard "ekmillard (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/questblue-genesis/health.svg)

```
[![Health](https://phpackages.com/badges/questblue-genesis/health.svg)](https://phpackages.com/packages/questblue-genesis)
```

###  Alternatives

[crescat-io/saloon-sdk-generator

Simplified SDK Scaffolding for Saloon

13130.9k7](/packages/crescat-io-saloon-sdk-generator)

PHPackages © 2026

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