https://github.com/openthc/common
Common Library - PHP
https://github.com/openthc/common
middleware php
Last synced: 6 months ago
JSON representation
Common Library - PHP
- Host: GitHub
- URL: https://github.com/openthc/common
- Owner: openthc
- License: mit
- Created: 2019-09-15T14:56:12.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2025-10-29T19:30:26.000Z (9 months ago)
- Last Synced: 2025-10-29T21:29:25.761Z (9 months ago)
- Topics: middleware, php
- Language: PHP
- Size: 314 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Common Library
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`