PHP Package: dasprid/enum

Dasprid's Enum PHP library provides robust enumeration support for PHP applications, enhancing type safety and readability.

Current Version: 1.0.6
Last Updated: Date not available
PHP Requirement: >=7.1 <9.0
Dependencies:
php-fig/fig-standards
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Dasprid's Enum library for PHP is a powerful tool that simplifies the handling of enumerations in your projects. By using this library, you can define strongly typed enumerations with ease, improving code quality and reducing the chances of errors. This library offers a comprehensive set of features to efficiently work with enums, making it a valuable addition to any PHP application.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.0.6

Download Download v1.0.6

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/dasprid/enum/1.0.6/loader.php';
require_once 'libs/php-fig/fig-standards/{lib_version}/loader.php';

use Dasprid\Enum\Enum;

$obj = new Enum();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.