floor9design/machine-identifier

This is a simple class for identifying machines, creating a unique ID based on hardware (Hard disk UUID)

0.1.0 2018-01-18 15:46 UTC

This package is auto-updated.

Last update: 2024-11-15 01:03:12 UTC


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.