openthc/common

OpenTHC Common Library

Maintainers

Package info

github.com/openthc/common

pkg:composer/openthc/common

Statistics

Installs: 3 550

Dependents: 2

Suggesters: 0

Stars: 2

Open Issues: 0

v2023.1.0 2023-02-24 20:41 UTC

This package is auto-updated.

Last update: 2026-03-03 01:16:06 UTC


README

This package includes a number of common configuration files, PHP classes and functions, Slim components and Twig templates.

Lib

This directory is autoloaded, all the classes are in the OpenTHC namespace.

Slim

There are some Slim components included as well

  • OpenTHC\App - a Slim App
  • OpenTHC\Middleware\Base
  • OpenTHC\Middleware\CORS
  • OpenTHC\Middleware\Log
  • OpenTHC\Middleware\RateLimit
  • OpenTHC\Middleware\Session
  • OpenTHC\Controller\Base
  • OpenTHC\Controller\OAuth2

Twig

Adds the ./vendor/openthc/twig path to the Twig loader. We also provide some wrapper templates for home.html and page-app.html