blakepro / template
一个简单的类,用于从JSON文件创建HTML
1.7.5
2022-09-10 02:29 UTC
This package is auto-updated.
Last update: 2024-09-10 06:28:05 UTC
README
一个简单的类,通过PHP创建HTML并通过JSON文件创建模板
安装(通过全局Composer)
composer require blakepro/template --no-cache
安装(通过Composer.phar)
php composer.phar require blakepro/template
通过Python安装Composer和类
curl -o installer.py https://raw.githubusercontent.com/BlakePro/Template/master/installer.py -H 'Cache-Control: no-cache' ; python installer.py;
更新(通过Composer)
php composer.phar update blakepro/template --no-cache
未解决包使用
php composer.phar update blakepro/template --ignore-platform-reqs
PHP文件用法
<?php require __DIR__ . '/vendor/autoload.php';
//HTML
$html = new blakepro\Template\Html();
//DATABASE
$pdo = new blakepro\Template\Sql(['host' => '', 'name' => '', 'user' => '', 'password' => '']);
//UTILITIES
$util = new blakepro\Template\Utilities(['encryption_key' => '']);