Download the PHP package limingxinleo/x-phalcon-enum without Composer
On this page you can find all versions of the php package limingxinleo/x-phalcon-enum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download limingxinleo/x-phalcon-enum
More information about limingxinleo/x-phalcon-enum
Files in limingxinleo/x-phalcon-enum
Download limingxinleo/x-phalcon-enum
More information about limingxinleo/x-phalcon-enum
Files in limingxinleo/x-phalcon-enum
Please rate this library. Is it a good library?
Informations about the package x-phalcon-enum
x-phalcon-enum
安装
composer require limingxinleo/x-phalcon-enum
使用
定义枚举类
use Xin\Phalcon\Enum\Enum;
class ErrorCode extends Enum
{
/**
* @Message('非法的TOKEN')
*/
public static $ENUM_INVALID_TOKEN = 700;
}
获取单个枚举
$code = ErrorCode::$ENUM_INVALID_TOKEN;
$message = ErrorCode::getMessage($code);
获取枚举数组
$message = ErrorCode::toArray();
All versions of x-phalcon-enum with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
limingxinleo/x-trait-common Version ^1.1
limingxinleo/support-str Version ^1.0
limingxinleo/x-trait-common Version ^1.1
limingxinleo/support-str Version ^1.0
The package limingxinleo/x-phalcon-enum contains the following files
Loading the files please wait ....