PHPackages                             kny00/techspecs-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. [API Development](/categories/api)
4. /
5. kny00/techspecs-php

ActiveLibrary[API Development](/categories/api)

kny00/techspecs-php
===================

An implementation of TechSpecs API for PHP.

v1.0.3(4y ago)05MITPHPPHP ^7.4

Since Apr 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/KNY00/techspecs-php)[ Packagist](https://packagist.org/packages/kny00/techspecs-php)[ RSS](/packages/kny00-techspecs-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

[![TechSpecs Logo](https://camo.githubusercontent.com/1907bb4430151a58fdb5b7b06a6fc08147faffb535a8e8f8baa949b43b8b7ed0/68747470733a2f2f692e696d6775722e636f6d2f5159766251706e2e706e67)](https://camo.githubusercontent.com/1907bb4430151a58fdb5b7b06a6fc08147faffb535a8e8f8baa949b43b8b7ed0/68747470733a2f2f692e696d6775722e636f6d2f5159766251706e2e706e67)

Introducing TechSpecs PHP
=========================

[](#introducing-techspecs-php)

This php library provides automatic access to the standardized technical specifications of the world's consumer electronics, including the latest smartphones, tablets, smartwatches, laptops, and more.

Documentation
-------------

[](#documentation)

- See the [TechSpecs API Docs](https://techspecs.readme.io)

API Key
-------

[](#api-key)

- Get a TechSpecs [API Key](https://developer.dashboard.techspecs.io/)

Requirements
------------

[](#requirements)

- PHP 7.4+
- Composer

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

[](#installation)

```
composer require kny00/techspecs-php-sdk
```

Usage
-----

[](#usage)

The library needs to be configured with your account's api key and base which is available in your [TechSpecs Dashboard](https://developer.dashboard.techspecs.io/).

Set `$techSpecsKey` to your key value and `$techSpecsBase` to your base value.

### Basic Search

[](#basic-search)

#### Search for a device by specifying it's model name, version number or features

[](#search-for-a-device-by-specifying-its-model-name-version-number-or-features)

```
require 'vendor/autoload.php';

// Importing the SDK class
use TechSpecsSDK\TechSpecsSDK;

// TechSpecs API Key
$techSpecsKey = 'techspecs_api_key';

// TechSpecs base https://apis.dashboard.techspecs.io/{techspecs_base}
$techSpecsBase = 'a8TD3mkN49fhg2y';

// Instantiate the Library
$techSpecs = new TechSpecsSDK($techSpecsBase, $techSpecsKey);

// product name or version number to search
$keyword = 'iPhone 13';

// product category to search
$category = ['all'];

// choose between "pretty" or "raw" mode for viewing response
$response = $techSpecs->search($keyword, $category, 'pretty');

// print the search results
print($response);
```

### Advanced Search

[](#advanced-search)

#### List all products by brand, category and release date

[](#list-all-products-by-brand-category-and-release-date)

```
require 'vendor/autoload.php';

// Importing the SDK class
use TechSpecsSDK\TechSpecsSDK;

// TechSpecs API Key
$techSpecsKey = 'techspecs_api_key';

// TechSpecs base https://apis.dashboard.techspecs.io/{techspecs_base}
$techSpecsBase = 'a8TD3mkN49fhg2y';

// Instantiate the Library
$techSpecs = new TechSpecsSDK($techSpecsBase, $techSpecsKey);

// enter the page number to fetch results from
$page = 1;

/**
 * Type in the name of the brand you're looking for
 * or leave this field empty to see results from all brands
 */
$brand = ['Apple'];

/**
 * Type in the name of the category you're looking for
 * or leave this field empty to see results from all categories
 */
$category = ['smartphone'];

/**
 * Please provide a date range to narrow your search.
 * Leave this field empty to fetch all results from all dates
 */
$dateFrom = '2010-01-01'; // YYYY-MM-DD
$dateTo = '2022-03-15'; // YYYY-MM-DD

// Choose between "pretty" or "raw" mode for viewing response
$response = $techSpecs->products(
    $brand,
    $category,
    $dateFrom,
    $dateTo,
    $page,
    'pretty'
);

// Print the search results
print($response);
```

### Product Details

[](#product-details)

```
require 'vendor/autoload.php';

// Importing the SDK class
use TechSpecsSDK\TechSpecsSDK;

// TechSpecs API Key
$techSpecsKey = 'techspecs_api_key';

// TechSpecs base https://apis.dashboard.techspecs.io/{techspecs_base}
$techSpecsBase = 'a8TD3mkN49fhg2y';

// Instantiate the Library
$techSpecs = new TechSpecsSDK($techSpecsBase, $techSpecsKey);

// TechSpecs product id
$techspecsId = '6186b047987cda5f88311983';

// choose between "pretty" or "raw" mode for viewing response
$response = $techSpecs->productDetail($techspecsId, 'pretty');

// print the specifications of the product
print($response);
```

### List all brands

[](#list-all-brands)

```
require 'vendor/autoload.php';

// Importing the SDK class
use TechSpecsSDK\TechSpecsSDK;

// TechSpecs API Key
$techSpecsKey = 'techspecs_api_key';

// TechSpecs base https://apis.dashboard.techspecs.io/{techspecs_base}
$techSpecsBase = 'a8TD3mkN49fhg2y';

// Instantiate the Library
$techSpecs = new TechSpecsSDK($techSpecsBase, $techSpecsKey);

// choose between "pretty" or "raw" mode for viewing response
$response = $techSpecs->brands('pretty');

// print the search results
print($response);
```

### List all categories

[](#list-all-categories)

```
require 'vendor/autoload.php';

// Importing the SDK class
use TechSpecsSDK\TechSpecsSDK;

// TechSpecs API Key
$techSpecsKey = 'techspecs_api_key';

// TechSpecs base https://apis.dashboard.techspecs.io/{techspecs_base}
$techSpecsBase = 'a8TD3mkN49fhg2y';
// Instantiate the Library
$techSpecs = new TechSpecsSDK($techSpecsBase, $techSpecsKey);

// choose between "pretty" or "raw" mode for viewing response
$response = $techSpecs->categories('pretty');

// print the list of all categories
print($response);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

5

Last Release

1495d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83fe2758db4441de720e059850df951dea482fafd32337c1dbf728c9062fc9f2?d=identicon)[KNY00](/maintainers/KNY00)

---

Top Contributors

[![KNY00](https://avatars.githubusercontent.com/u/32478933?v=4)](https://github.com/KNY00 "KNY00 (17 commits)")

---

Tags

apiapi-clientsdktechspecsphpapiclientsdktechspecs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kny00-techspecs-php/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[kunalvarma05/dropbox-php-sdk

Dropbox PHP API V2 SDK (Unofficial)

3633.0M18](/packages/kunalvarma05-dropbox-php-sdk)[resend/resend-php

Resend PHP library.

574.7M21](/packages/resend-resend-php)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)

PHPackages © 2026

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