PHP code example of geega / php-micro

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

    

geega / php-micro example snippets

 
class StatusEnum extends Enum
{

   const ON = 1;
   const OFF = 0;


   public static function getLabels()
    {
        return [
           self::ON   => 'Turn on',
           self::OFF   => 'Turn off',
        ];
    }
}