PHPackages                             laravel-gtm/nerdydata-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. laravel-gtm/nerdydata-sdk

ActiveLibrary

laravel-gtm/nerdydata-sdk
=========================

Laravel-ready PHP SDK for the NerdyData API, built with Saloon.

v0.1.0(1mo ago)065↓50%MITPHPPHP ^8.4CI passing

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/laravel-gtm/nerdydata-api-sdk)[ Packagist](https://packagist.org/packages/laravel-gtm/nerdydata-sdk)[ RSS](/packages/laravel-gtm-nerdydata-sdk/feed)WikiDiscussions main Synced 1w ago

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

NerdyData API SDK
=================

[](#nerdydata-api-sdk)

A typed PHP 8.4 SDK for version 1.1.1 of the [NerdyData API](https://api.nerdydata.com), built with Saloon 4 and ready for Laravel 11, 12, or 13.

It covers every operation in the OpenAPI 3.0 contract:

- code, title, and meta-description search;
- asynchronous CSV downloads;
- report suggestions;
- domain metadata and technology profiles.

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

[](#installation)

```
composer require laravel-gtm/nerdydata-sdk
```

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

[](#configuration)

Laravel discovers the service provider automatically. Publish its configuration:

```
php artisan vendor:publish --tag=nerdydata-sdk-config
```

Set your API key:

```
NERDYDATA_TOKEN=your-api-key
NERDYDATA_BASE_URL=https://api.nerdydata.com
NERDYDATA_AUTH_HEADER=api_key
```

`NERDYDATA_BASE_URL` and `NERDYDATA_AUTH_HEADER` are optional. Their shown values are the defaults from the API contract.

For standalone use:

```
use LaravelGtm\NerdyDataSdk\NerdyDataSdk;

$sdk = NerdyDataSdk::make(token: 'your-api-key');
```

In Laravel, resolve `NerdyDataSdk` from the container:

```
$sdk = app(\LaravelGtm\NerdyDataSdk\NerdyDataSdk::class);
```

Structured searches
-------------------

[](#structured-searches)

Use `SearchQuery` to compose `all`, `any`, and `none` terms. A term may contain code or a report UUID returned by `suggestions()`.

```
use LaravelGtm\NerdyDataSdk\ValueObjects\SearchQuery;
use LaravelGtm\NerdyDataSdk\ValueObjects\SearchTerm;

$search = new SearchQuery(
    all: [SearchTerm::report('d513e568-ad32-44b5-b0c8-1b7d3fbe88a6')],
    any: [SearchTerm::code('cdn.shopify.com')],
    none: [SearchTerm::code('cdn.bigcommerce.com')],
);

// Convenience forms put every supplied term in the `all` bucket.
$search = SearchQuery::code('cdn.shopify.com', 'shopify.js');
$search = SearchQuery::report('d513e568-ad32-44b5-b0c8-1b7d3fbe88a6');
```

Search endpoints
----------------

[](#search-endpoints)

```
// GET /search
$results = $sdk->searchCode($search, start: 25);

foreach ($results->sites as $site) {
    $site->domain;
    $site->company;
    $site->linkedin;
}

$results->total;
$results->nextPage;

// GET /search/title
$titles = $sdk->searchTitles(SearchQuery::code('Shopify'));

// GET /search/description
$descriptions = $sdk->searchDescriptions(SearchQuery::code('commerce platform'));
```

Title and description searches return `MetaSearchResults`, whose sites contain the documented `domain` and `url` fields. Code searches return `SearchResults` with full `Site` records and the optional `nextPage` cursor.

The API still documents deprecated `query`, `report`, and `page` parameters. They remain available explicitly:

```
use LaravelGtm\NerdyDataSdk\ValueObjects\SearchInput;

$results = $sdk->searchCode(
    SearchInput::query('cdn.shopify.com'),
);

$nextPage = $sdk->searchCode(page: 'previous-next-page-value');

$titles = $sdk->searchTitles(SearchInput::report('report-uuid'));
```

Downloads
---------

[](#downloads)

Create a job, then poll its hash until `file` is present. Download URLs are valid for 30 minutes.

```
// POST /downloads
$download = $sdk->createDownload(SearchQuery::code('cdn.shopify.com'));

// GET /downloads/{id}
$download = $sdk->getDownload($download->hash);

if ($download->isReady()) {
    $file = $download->file;
}
```

`createDownload()` also accepts `SearchInput::query()` and `SearchInput::report()` for the deprecated request-body forms.

Suggestions and domains
-----------------------

[](#suggestions-and-domains)

```
// GET /suggestions
$reports = $sdk->suggestions('shopify');
$reportId = $reports[0]->uuid;

// GET /domains/{domain}
$domain = $sdk->domain('oracle.com');

// GET /domains/{domain}/technologies
$technologies = $sdk->domainTechnologies('allbirds.com');
$profile = $technologies->first();
```

Non-successful HTTP responses throw Saloon request exceptions. The API's `{ "message": "..." }` body can be mapped with `Responses\ErrorResponse` when needed.

Development
-----------

[](#development)

```
composer test
composer analyse
composer lint
```

License
-------

[](#license)

MIT. See [LICENSE](LICENSE).

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance90

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

2

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56dcbcd0139adf900f58bc19509e785e6724dadfbfcc74f9c6769432c31686cf?d=identicon)[devethanm](/maintainers/devethanm)

---

Top Contributors

[![devethanm](https://avatars.githubusercontent.com/u/53354219?v=4)](https://github.com/devethanm "devethanm (2 commits)")[![DGarbs51](https://avatars.githubusercontent.com/u/58236685?v=4)](https://github.com/DGarbs51 "DGarbs51 (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/laravel-gtm-nerdydata-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-gtm-nerdydata-sdk/health.svg)](https://phpackages.com/packages/laravel-gtm-nerdydata-sdk)
```

###  Alternatives

[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1226.1k](/packages/codebar-ag-laravel-docuware)

PHPackages © 2026

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