定制 sealution/mac-resolver 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sealution/mac-resolver

最新稳定版本:1.0.1

Composer 安装命令:

composer require sealution/mac-resolver

包简介

Laravel MAC Address detail resolver.

README 文档

README

This PHP package allows you to get the information related to an IEEE OUI assignment from a Laravel application.

The mac-resolver package downloads the OUI mapping information in CSV format from the IEEE website. Then it processes the CSV files and later stores the OUI assignment details in tables in the database.

Install

You can install the package via composer:

composer require sealution/mac-resolver

Then publish the assets with this command:

php artisan mac:install

After publishing the assets (config & migrations), run artisan migrate:

php artisan migrate

Usage

Get MAC Address details

You can use "php artisan mac: details " in the console to get the vendor details as well as the OUI assignment details.

php artisan mac:details  <mac-address>
php artisan mac:details  00-15-5D-81-E0-B0
 Vendor details
 ------------- ---------------------------------------------
  OUI           00155D
  MAC Address   00-15-5D-81-E0-B0
  Vendor        Microsoft Corporation
  Address       One Microsoft Way Redmond WA US 98052-8300
  Is Private    false
 ------------- ---------------------------------------------

 Block details
 ------------------- -------------------
  Registry            MA-L
  Assignment bits     2^24
  Block Size          16,777,216
  Lower MAC Address   00:15:5D:00:00:00
  Upper MAC Address   00:15:5D:FF:FF:FF
  Last Update         Unknown
 ------------------- -------------------

 MAC Address details
 --------------------- ----------------------------------------
  MAC Address           00-15-5D-81-E0-B0
  Administration byte   UAA (Universally Administered Address)
  Group byte            Individual address
  Virtual Machine       true
  Is Multicast          false
  Is Unicast            false
  Is Valid              true
 --------------------- ----------------------------------------

Get vendor details

You can use "php artisan mac:vendor " in the console to get the vendor details associated with the OUI assignment.

php artisan mac:vendor <mac-address>
php artisan mac:vendor 00-15-5D-81-E0-B0
 ------------- -----------------------
  OUI           00155D
  MAC Address   00-15-5D-81-E0-B0
  Vendor        Microsoft Corporation
  Registry      MA-L
 ------------- -----------------------

Security Vulnerabilities

If you discover any security related issues, please open an issue on the GitHub repository(

Credits

License

The package Ping is open-source package and is licensed under The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固