Download the PHP package infocyph/uid without Composer

On this page you can find all versions of the php package infocyph/uid. 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 uid

UID

build Codacy Badge Packagist Downloads License: MIT Packagist Version Packagist PHP Version Support GitHub code size in bytes ![]()

An AIO Unique ID generator written in PHP. Supports (references available at the bottom),

Table of contents

Prerequisites

Language: PHP 8/+

Installation

Usage

UUID (Universal Unique Identifier)

The node specific UUID's $node parameter (1, 6, 7, 8) is optional. If not provided, it will be generated randomly. But, if you wanna track the source of the UUIDs, you should use it (pre-define the node per server & pass it accordingly).

UUID v1: Time-based UUID.

UUID v3: Namespace based UUID.

UUID v4: Random UUID.

UUID v5: Namespace based UUID.

UUID v6 (draft-based/unofficial): Time-based UUID.

UUID v7 (draft-based/unofficial): Time-based UUID.

UUID v8 (draft-based/unofficial): Time-based UUID. Lexicographically sortable.

GUID

GUID generator, works in all platform. Generate:

Note: Sending false in only parameter will return the string enclosed with Braces

Additional

ULID (Universally Unique Lexicographically Sortable Identifier)

Snowflake ID

Sonyflake ID

TBSL: Time-Based Keys with Lexicographic Sorting (library exclusive)

RandomId

With this you can generate RandomIds. These are great for usage where you don't want a large length/formatted IDs like UUID4. These IDs are unique & can't be backtracked.

NanoID (URL friendly Unique Random ID)

Cuid2 (URL friendly, secure & collision free)

Benchmark

Type Generation time (ms)
UUID v1 (random node) 0.00411 (ramsey/Uuid: 0.18753)
UUID v1 (fixed node) 0.00115 (ramsey/Uuid: 0.17386)
UUID v3 (custom namespace) 0.00257 (ramsey/Uuid: 0.03015)
UUID v4 0.00362 (ramsey/Uuid: 0.16501)
UUID v5 (custom namespace) 0.00108 (ramsey/Uuid: 0.03658)
UUID v6 (random node) 0.00444 (ramsey/Uuid: 0.17469)
UUID v6 (fixed node) 0.00164 (ramsey/Uuid: 0.17382)
UUID v7 (random node) 0.00503 (ramsey/Uuid: 0.16278)
UUID v7 (fixed node) 0.00154 (ramsey/Uuid: 0.18753)
UUID v8 (random node) 0.00505 (ramsey/Uuid: N/A)
UUID v8 (fixed node) 0.00209 (ramsey/Uuid: 0.16029 *predefined random node, not usable as signature)
ULID 0.00506 (robinvdvleuten/php-ulid: 0.00508)
Snowflake 0.13951 (godruoyi/php-snowflake: 0.14856)
Sonyflake 0.13821 (godruoyi/php-snowflake: 0.14583)
TBSL 0.0034
NanoID 0.00057
Cuid2 0.01817

Support

Having trouble? Create an issue!

References


All versions of uid with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-bcmath Version *
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 infocyph/uid contains the following files

Loading the files please wait ....