Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via composer

symfony/uid v7.0.0

Provides an object-oriented API to generate and represent UIDs
Package summary
Share
0
issues
1
license
2
MIT
Package created
12 Mar 2020
Version published
31 Oct 2023
Maintainers
1
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
symfony/polyfill-uuid@v1.29.0
symfony/uid@v7.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of symfony/uid 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/polyfill-uuidv1.29.07.07 kBMIT
prod

Visualizations

Frequently Asked Questions

What does symfony/uid do?

Symfony/UID is a PHP package that offers an object-oriented API to generate and represent Universal Unique Identifiers (UUIDs) and Universally Unique Lexicographically Sortable Identifier (ULIDs). The package provides implementations compatible with both 32-bit and 64-bit CPUs and supports different versions of UUIDs (version 1 and versions 3 to 8).

How do you use symfony/uid?

Usage of the symfony/uid package relies mainly on object-oriented PHP programming principles. The package allows you to directly create different versions of UUIDs and ULIDs. Below are some basic code usage examples,

use Symfony\Component\Uid\UuidV4;

$uuid4 = UuidV4::v4(); // Generate a UUIDv4

echo $uuid4->toString(); // print the UUID
use Symfony\Component\Uid\Ulid;

$ulid = Ulid::generate(); // Generate a ULID

echo $ulid->toRfc4122(); // print the ULID

Where are the symfony/uid docs?

The documentation for Symfony/Uid is available on the official Symfony website, at the following URL: Symfony/Uid Documentation. Here, you will find comprehensive documentation on how to use the UID component, including detailed examples and parameters for different methods provided in the package. The "Contributing" section is a useful resource for anyone eager to contribute to the package's development.