zykutil/unisn

To generate customize and unique Serial Number.

Maintainers

Package info

github.com/zyk0615/unisn

pkg:composer/zykutil/unisn

Statistics

Installs: 43

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.2 2023-01-02 13:46 UTC

This package is auto-updated.

Last update: 2026-03-29 01:01:00 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();