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-04-22 07:03:30 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.