silverengine/components

此包的最新版本(dev-master)没有提供许可证信息。

dev-master 2018-03-12 21:59 UTC

This package is not auto-updated.

Last update: 2024-09-18 21:20:06 UTC


README

幽灵模板引擎

SilverEngine 是一个强大的 PHP 动态 MVC 框架,专为需要简单优雅的工具包来创建功能强大的全功能 Web 应用程序的开发者而构建。

Licence PHP5.6 version Alpha

文档

框架的文档仍在进行中(WIP)。

外观

更改名称以使用外观

namespace App\Facades;

use Silver\Components\Crypto\Facade;

class Example extends Facade
{
    protected static function getClass()
    {
        return '\App\Helper\Example';
    }
}

加密

  • 如果密码为 null,将默认从 env 中获取密码 Env::get('app_key');

Engcode encode($string, $password = null, $chiper = null)

$crypto = new Crypto();
$crypto->encode('my frist encode hash, 'testhash');

Engcode decode($string, $password = null, $chiper = null)

echo $crypto->decode('k4j35hk4jh52k43ljh5kk2l35j', 'testhash');

Engcode encodeArray($array, $password = null, $chiper = null)

$crypto = new Crypto();
$crypto->encodeArray('my frist encode hash, 'testhash');

Engcode decodeArray($array, $password = null, $chiper = null)

echo $crypto->decode('k4j35hk4jh52k43ljh5kk2l35j', 'testhash');

makeHash

$crypto = new Crypto();
$crypto->makeHash('my frist encode hash');

verifyHash

$crypto = new Crypto();
$crypto->verifyHash('my frist encode hash', 'jh4j35g3j4h5gjk3hgk2jh5ghjhj');

贡献

感谢您考虑为框架做出贡献!贡献指南可以在文档中找到。

安全 & 漏洞

如果您在我们的引擎中发现安全漏洞,请发送电子邮件至 support@silverengine.net

许可证

Silver Engine 框架是开源软件,许可协议为MIT 许可证