Download the PHP package laravel-gtm/nerdydata-sdk without Composer
On this page you can find all versions of the php package laravel-gtm/nerdydata-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-gtm/nerdydata-sdk
More information about laravel-gtm/nerdydata-sdk
Files in laravel-gtm/nerdydata-sdk
Package nerdydata-sdk
Short Description Laravel-ready PHP SDK for the NerdyData API, built with Saloon.
License MIT
Informations about the package nerdydata-sdk
NerdyData API SDK
A typed PHP 8.4 SDK for version 1.1.1 of the NerdyData API, 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
Configuration
Laravel discovers the service provider automatically. Publish its configuration:
Set your API key:
NERDYDATA_BASE_URL and NERDYDATA_AUTH_HEADER are optional. Their shown values are the defaults from the API contract.
For standalone use:
In Laravel, resolve NerdyDataSdk from the container:
Structured searches
Use SearchQuery to compose all, any, and none terms. A term may contain code or a report UUID returned by suggestions().
Search endpoints
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:
Downloads
Create a job, then poll its hash until file is present. Download URLs are valid for 30 minutes.
createDownload() also accepts SearchInput::query() and SearchInput::report() for the deprecated request-body forms.
Suggestions and domains
Non-successful HTTP responses throw Saloon request exceptions. The API's { "message": "..." } body can be mapped with Responses\ErrorResponse when needed.
Development
License
MIT. See LICENSE.
All versions of nerdydata-sdk with dependencies
illuminate/support Version ^11.0 || ^12.0 || ^13.0
saloonphp/saloon Version ^4.0
saloonphp/laravel-plugin Version ^4.0
saloonphp/rate-limit-plugin Version ^2.0