Download the PHP package qiuqiux/serialno without Composer

On this page you can find all versions of the php package qiuqiux/serialno. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package serialno

SerialNo

用于生成全站性的唯一序列号批次(类似优惠券),暂时只提供生成纯数字版本

Examples:

$conf = [
    'amount'        => 1000,
    'minLength'     => 11,
    'hashLength'    => 4,
    'key'           => 'test',
    'serialLength'  => 3,
    'padding'       => '0',
    'mulFactor'     => '101',
    'diffFactor'    => '641'
];

$total = [];
$a = [];

for ($x = 1; $x <= 10; ++$x) {
    $app = new Application($x, $conf);
    for ($i = 1; $i <= 1000; ++$i) {
        $a[] = $app->digital($i);
    }
    $total[] = $a;
    $a = [];
}
count(array_intersect($total[0], $total[1], $total[2], $total[3], $total[4], $total[5], $total[6], $total[7], $total[8], $total[9]));  // 0
var_export($total[0]);
01227004214
01358004368
01649004462
01400004530
01491004617
01392004774
01233004863
01834004993
01275005074
01976005182
...

Application参数说明

参数一:
唯一标识,也可以看作是一个生成的前缀,用于确保各批生成的序列号的唯一性,建议使用数据库ID

参数二:
配置选项
[
      'amount',  
      'minLength',  
      'hashLength',  
      'key',  
      'serialLength',  
      'padding',  
      'mulFactor',  
      'diffFactor',  
]

All versions of serialno with dependencies

PHP Build Version
Package Version
Requires qiuqiux/base-convert Version ~1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package qiuqiux/serialno contains the following files

Loading the files please wait ....