floor9design/machine-identifier
Composer 安装命令:
composer require floor9design/machine-identifier
包简介
This is a simple class for identifying machines, creating a unique ID based on hardware (Hard disk UUID)
README 文档
README
This is a simple class for identifying machines, creating a unique ID based on hardware (Hard disk UUID)
Install
Via Composer
$ composer require floor9design/machine-identifier
Note, the composer file should be available in PSR4 compliant packages, such as Laravel, by default.
Usage
Instantiate the class as required.
$machine_identifier = new \Floor9design\MachineIdentifier\MachineIdentifier();
or
Use \Floor9design\MachineIdentifier\MachineIdentifier;
and
$machine_identifier = new MachineIdentifier();
Generate a unique ID as follows:
$id = $machine_identifier->uniqueMachineId();
Optionally a salt can be used to add further uniqueness:
$id = $machine_identifier->uniqueMachineId($salt);
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Testing is currently under development.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email rick@floor9design.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 46
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-16