zykutil/unisn

To generate customize and unique Serial Number.

1.0.2 2023-01-02 13:46 UTC

This package is auto-updated.

Last update: 2024-03-30 00:38:03 UTC


README

In order to create a unique serial number.There are currently six types.Included in ZYKUtil\UniSn\DPFactory\FactoryTypeEnum::class.

Install

composer require zykutil/unisn

config/app.php

providers add

ZYKUtil\UniSn\UniSnServiceProvider::class

alias add

'UniSn' => ZYKUtil\UniSn\UniSnFacade::class

Copy the package config to your local config with the publish command:

php artisan vendor:publish --tag=zykutil-unisn --ansi --force

Simply used

\UniSn::execute();