GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - frameworkwtf/html: HTML module

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
tests
tests
 
 
.coveralls.yml
.coveralls.yml
 
 
.gitignore
.gitignore
 
 
.php_cs.dist
.php_cs.dist
 
 
.travis.yml
.travis.yml
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
_config.yml
_config.yml
 
 
composer.json
composer.json
 
 
index.md
index.md
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 

Repository files navigation

HTML

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

About

HTML module

Topics

htmltwigwtf-module

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.