techendeavors/checkpciid

Returns the vendor and device name when supplied with a PCI device ID

1.0.0 2018-07-21 15:00 UTC

This package is auto-updated.

Last update: 2024-10-22 08:02:34 UTC


README

Returns the vendor and device name when supplied with a PCI device ID.

Latest Version on Packagist Total Downloads

Doesn't have a local database, this pulls data from DNS TXT records using the techendeavors/dnsoverhttps package.

To Do

  • [ ] Make it able to be called statically
  • [ ] Write Tests

Installation

You can install the package via composer:

composer require techendeavors/checkpciid

Usage

>>> $id = new CheckPCIID;
=> Techendeavors\CheckPCIID\CheckPCIID {#2863}
>>> $results = $id->search('10ec:8168')
=> [
     "Vendor" => "Realtek Semiconductor Co., Ltd.",
     "Device" => "RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller",
   ]
>>> $results = $id->search('10ec')
=> [
     "Vendor" => "Realtek Semiconductor Co., Ltd.",
   ]
>>> $results = $id->search('10de:1b80')
=> [
     "Vendor" => "NVIDIA Corporation",
     "Device" => "GP104 [GeForce GTX 1080]",
   ]
>>> $results = $id->search('8086:591f')
=> [
     "Device" => "Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers",
     "Vendor" => "Intel Corporation",
   ]

Testing

Not yet implemented

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please use the issue tracker

Credits

License

The MIT License (MIT). Please see License File for more information.