1. Go to this page and download the library: Download olivermbs/enumshare 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/ */
olivermbs / enumshare example snippets
namespace App\Enums;
use Olivermbs\Enumshare\Attributes\Label;
use Olivermbs\Enumshare\Attributes\Meta;
enum Status: string
{
#[Label('Active')]
#[Meta(['color' => 'green'])]
case Active = 'active';
#[Label('Inactive')]
#[Meta(['color' => 'red'])]
case Inactive = 'inactive';
}