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

ActiveLibrary[API Development](/categories/api)

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

Get The Standardized Specs Of Over 19,000 Devices including the latest smartphones, tablets and smartwatches, Without The Hassle

v1.0.0(4y ago)2144[1 PRs](https://github.com/techspecs/techspecs-php/pulls)MITPHPPHP ^7.4

Since Apr 14Pushed 4y ago1 watchersCompare

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

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

[![TechSpecs Logo](https://camo.githubusercontent.com/b8d4e553c16f66164dd681b946fd5abdebd24626b49b9447b546066929be71e0/68747470733a2f2f692e696d6775722e636f6d2f4a7753705a4f382e6a7067)](https://camo.githubusercontent.com/b8d4e553c16f66164dd681b946fd5abdebd24626b49b9447b546066929be71e0/68747470733a2f2f692e696d6775722e636f6d2f4a7753705a4f382e6a7067)[![TechSpecs Logo](https://camo.githubusercontent.com/1dc481fe7e5a60fea970e11a5c2e264bc8f416e4155d0403b97c2412c3eaae3a/68747470733a2f2f692e696d6775722e636f6d2f4a5a33477141552e6a7067)](https://camo.githubusercontent.com/1dc481fe7e5a60fea970e11a5c2e264bc8f416e4155d0403b97c2412c3eaae3a/68747470733a2f2f692e696d6775722e636f6d2f4a5a33477141552e6a7067)

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 techspecs/techspecs-php
```

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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.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

Unknown

Total

1

Last Release

1494d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/813465e71bbba6f766fc5a7332138d630e7e12dfc896cb84fdd3ce10cc2b842b?d=identicon)[techspecs](/maintainers/techspecs)

---

Top Contributors

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

---

Tags

consumer-electronicslaptop-databaselaptopsphpsmartphone-datasmartphone-databasesmartphonessmartwatch-databasesmartwatchesspecstabletstablets-databasetechnical-specificationstechspecstechspecs-sdkphpapiclientsdktechspecssmartphone-specificationsphone-specstablet-specificationssmartwatch-specificationslaptop-specificationstechspecs-apitechspecs-sdktechspecs-php

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/techspecs-techspecs-php/health.svg)](https://phpackages.com/packages/techspecs-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.

564.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)
