PHP code example of guil95 / enum

1. Go to this page and download the library: Download guil95/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/ */

    

guil95 / enum example snippets



use guil95\Enum\Enum;

final class EnumClass
{
    use Enum;

    const TEST = 'TEST1';
    const TEST2 = 'TEST2';