PHP Package: marc-mabe/php-enum

PHP library providing enum implementation for improved type safety in applications.

Current Version: 4.7.2
Last Updated: 2025-09-14
PHP Requirement: ^7.1 | ^8.0
Dependencies: None

Package Description

PHP-Enum is a robust library offering enumeration support, enhancing application reliability and maintainability. Enumerations simplify codebase management, ensuring consistent and error-free data handling. By leveraging PHP-Enum, developers can streamline complex data structures and enforce type constraints effectively.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 4.7.2

Download Download v4.7.2

Previous Versions

Code Integration Example

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

<?php
// Example from PHPlibraries.com

require_once 'libs/marc-mabe/php-enum/4.7.2/loader.php';
use Marc\Mabe\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.