openthc / common
OpenTHC Common Library
Installs: 2 923
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=7.3.0
- ext-curl: *
- ext-date: *
- ext-json: *
- ext-pdo: *
- ext-session: *
- ext-sockets: *
- edoceo/radix: 2021.0.0
- erusev/parsedown-extra: 0.8.1
- firebase/php-jwt: 6.3
- giggsey/libphonenumber-for-php: 8.12.56
- guzzlehttp/guzzle: 6.5.8
- slim/slim: 3.12.4
- slim/twig-view: 2.5.1
- swaggest/json-schema: 0.12.41
- twig/twig: 2.15.3
Requires (Dev)
- behat/behat: 3.11.0
- php-webdriver/webdriver: 1.13.0
- phpmd/phpmd: 2.13.0
- phpstan/phpstan: 1.8.8
- phpunit/phpunit: 9.5.25
- sebastian/phpcpd: 6.0.3
This package is auto-updated.
Last update: 2025-03-30 17:30:22 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