承接 wtf/html 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wtf/html

Composer 安装命令:

composer require wtf/html

包简介

HTML package for WTF Framework

README 文档

README

Build Status Coverage Status

This package contains Twig template engine with flash messages and a useful Session class for WTF framework

Installation

Install via Composer

composer require wtf/html

Configure your app

Create config file html.php:

<?php

declare(strict_types=1);

$cache_dir = __DIR__.'/../cache';

return [
    'template_path' => __DIR__.'/../views/',
    'cache_path' => __DIR__.'/../cache',
];

Optional: create csrf.php config:

<?php

declare(strict_types=1);

return [
    'failure_callable' => function ($request, $response, $next) { //@link https://github.com/slimphp/Slim-Csrf#handling-validation-failure
        $request = $request->withAttribute("csrf_status", false);
        return $next($request, $response);
    }
];

Add new provider and middleware

  1. \Wtf\Html\Provider into your providers list (suit.php config)
  2. session_middleware and csrf_middleware into your middlewares list (suit.php config)
  3. Add session_start() in your public index.php

Documentation

Plugin is currently extended with the following plugins. Instructions on how to use them in your own application are linked below.

Plugin README
Slim Twig https://github.com/slimphp/Twig-View
Slim Flash https://github.com/slimphp/Slim-Flash
Slim Twig Flash https://github.com/kanellov/slim-twig-flash
Slim CSRF https://github.com/slimphp/Slim-Csrf
RKA Session https://github.com/akrabat/rka-slim-session-middleware

统计信息

  • 总下载量: 200
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固