Download the PHP package uuidfactory/uuidfactory-php without Composer
On this page you can find all versions of the php package uuidfactory/uuidfactory-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download uuidfactory/uuidfactory-php
More information about uuidfactory/uuidfactory-php
Files in uuidfactory/uuidfactory-php
Package uuidfactory-php
Short Description PHP client for UUIDFactory API – generate and validate UUIDs online
License MIT
Homepage https://uuidfactory.com
Informations about the package uuidfactory-php
uuidfactory-php
PHP client for UUIDFactory API – generate and validate UUIDs online
UUIDFactory website | API Documentation | Online Validator | Online Generator
Overview
uuidfactory-php is the official PHP client for the UUIDFactory API.
Easily generate and validate UUIDs in your PHP projects. Supports UUID versions v1, v4, v7, GUID, batch generation, and batch validation, with seamless integration with the UUIDFactory online tools.
Key Features:
- Generate UUID v1, v4, v7, and GUID programmatically
- Validate single UUIDs or multiple UUIDs at once
- Generate multiple UUIDs at once (batch generation)
- Simple, lightweight PHP client using cURL
- Works with UUIDFactory API
Requirements
- PHP 7.4+
ext-curlext-json
Installation
Install via Composer:
Usage
Available Methods
| Method | Description |
|---|---|
generateV1() |
Generate UUID version 1 |
generateV4() |
Generate UUID version 4 (random) |
generateV7() |
Generate UUID version 7 |
generateGUID() |
Generate a GUID |
generateMultiple(string $type, int $count) |
Generate multiple UUIDs of the given type (v1, v4, v7, guid) |
validate(string $uuid) |
Validate if a string is a valid UUID; returns ['uuid' => ..., 'status' => 'valid'|'invalid', 'type' => ...] |
validateMultiple(array $uuids) |
Validate multiple UUIDs at once |
Examples
Check the examples/ folder for ready-to-run PHP scripts:
examples/basic.php– Generate and validate single UUIDsexamples/batch.php– Generate and validate multiple UUIDs at once
Run from project root after composer install:
Uruchomienie w Dockerze
W katalogu projektu:
Use Cases
- Quick UUID generation for PHP backend projects
- Validating single or multiple UUIDs before database insertion
- Generating multiple UUIDs for bulk operations
- Integration in Laravel, Symfony, or plain PHP apps
Links & References
License
This project is licensed under the MIT License.
All versions of uuidfactory-php with dependencies
ext-json Version *
ext-curl Version *