1. Go to this page and download the library: Download morilog/php-enum library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
morilog / php-enum example snippets
use Morilog\PhpEnum\Enum;
final class CommentStatus extends Enum
{
const APPROVED = 1;
const REJECTED = 2;
const SOMETHING_ELSE = 3;
}