PHP code example of oihana / php-enums
1. Go to this page and download the library: Download oihana/php-enums 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/ */
oihana / php-enums example snippets
use oihana\enums\Boolean;
use oihana\enums\Char;
use oihana\enums\http\HttpMethod;
use oihana\enums\http\HttpStatusCode;
$enabled = Boolean::TRUE; // 'true'
echo 'A' . Char::DOT . 'B'; // 'A.B'
HttpMethod::bash
composer