tereta / support
Requires
- php: >=8.4
- tereta/application: ^1.0
- tereta/config: ^1.0
- tereta/core: ^1.0
- tereta/route: ^1.0
- tereta/theme: ^1.0
README
π Π ΡΡΡΠΊΠΈΠΉ | English
Public contact page for the support service. Displays the support email retrieved from the current site's configuration, with a call to action to register.
Installation
composer require tereta/support
Purpose
The module implements the /support page β a simple "business card" of
the support service with an email address. The email is taken from the
site configuration (ConfigPool) and is displayed only if it is valid.
Route
| Parameter | Value |
|---|---|
| Alias | support |
| Pattern | /^support$/Usi |
| URL | /support |
| Controller | Tereta\Support\Controllers\View |
The route is registered via the #[Controller] attribute on the
controller class.
Configuration
The module reads a single key from Tereta\Config\Services\Pool in the
context of the current site ($requestModel->getSiteModel()->get('id')):
| Key | Type | Required | Description |
|---|---|---|---|
email | string | no | Support service email address |
If the key is missing or the value does not pass FILTER_VALIDATE_EMAIL,
the page is rendered without the email block β with no errors and no
logging.
Configuration example
In the site configuration (see the Tereta\Config module) it is enough
to set:
ConfigPool::singleton()->set('email', '{email_address}@{domain}');
After that, the /support page will show a working mailto: link.
Author and license
Author: Tereta Alexander
Website: tereta.dev
License: Apache License 2.0. See LICENSE.
www.ββββββββββββββββββββββββ βββββββββββββββββ ββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββ
βββ ββββββ ββββββββββββββ βββ ββββββββ
βββ ββββββ ββββββββββββββ βββ ββββββββ
βββ βββββββββββ βββββββββββ βββ βββ βββ
βββ βββββββββββ βββββββββββ βββ βββ βββ
.dev
Copyright (c) 2024-2026 Tereta Alexander