Download the PHP package rozumbunch/a11yes without Composer

On this page you can find all versions of the php package rozumbunch/a11yes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package a11yes

TYPO3 compatibility TYPO3 compatibility

TYPO3 extension A11yes

Links

URL
Repository: https://github.com/rozumbunch/TYPO3-a11yes
Documentation: https://github.com/rozumbunch/TYPO3-a11yes
TER: https://extensions.typo3.org/extension/a11yes
Packagist: https://packagist.org/packages/rozumbunch/a11yes

Languages: English · Deutsch

This extension integrates the JavaScript accessibility tool A11yes into TYPO3. After installation and including CSS and JavaScript via TypoScript, the tool is immediately available in the frontend – by default via an integrated, fixed button in the bottom-right corner, which can be disabled and replaced with custom buttons or menu items if needed.

Further configuration is handled via a Fluid ViewHelper and can then be adjusted in two ways:

The active configuration source is controlled by the switch a11yes.mode.

Included Files

The extension ships with a bundled version of the A11yes library. The current files are located at:

A newer version of the library can be downloaded at any time from a11yes.com and replaced in Resources/Public/Contrib/ and Resources/Public/translations/.

Frontend Behaviour

The initialization script Resources/Public/JavaScript/a11yes.js finds all elements with the class a11yes-open, reads their data-params attribute and starts A11yes:

Assets are included via Configuration/TypoScript/setup.typoscript:

ViewHelper and Partial

Two equivalent approaches are available for rendering the button. In addition to the integrated, fixed button in the bottom-right corner – which can be disabled via a11yes.hideFixedButton (Site Settings) or plugin.tx_a11yes.behavior.showFixedButton (TypoScript) – custom buttons or menu items can be defined in the template. Both variants below use the same configuration from Site Settings or TypoScript; the choice depends on how much control over markup and positioning is required.

Variant 1: ViewHelper directly in the template

The ViewHelper <rb:a11yesButton> generates the button with the class a11yes-open and writes the resolved configuration as JSON into data-params. Configuration values are not passed as Fluid arguments, but read centrally via the A11yesResolver.

Register the namespace in the Fluid template:

Render the button with a custom icon:

The content between the ViewHelper tags is rendered as the button icon. Position, spacing and additional markup are fully controlled in your own template.

Variant 2: Include the ready-made partial

The extension provides a preconfigured partial at:

This partial also uses <rb:a11yesButton> internally and positions the button fixed on the right side of the page. In the sitepackage, add the extension's partial path:

The partial can then be rendered in a layout or template:

Which variant when?

Variant Use case
ViewHelper directly Custom position, custom icon, integration in header/footer or existing components
Partial Quick integration without custom markup, standard button out of the box

Both variants work with the same JavaScript initializer. The only requirement is that at least one element with the class a11yes-open and a valid data-params attribute is rendered in the frontend.

Configuration Source

The source is selected via a dropdown in Site Settings:

The site set must be enabled in the site configuration:

The fields then appear in the backend under:

The switch is:

Automated rendering (without custom Fluid integration)

If you do not want to place <rb:a11yesButton> manually in your templates, the extension can render the default button automatically via TypoScript (page.footerData).

The behavior is controlled in Site Settings:

The TypoScript setup uses a condition similar to:

This mode is useful for projects that should get a working A11yes trigger without changing existing Fluid templates.

Classic approach: TypoScript Constants

The classic approach is maintained in Configuration/TypoScript/constants.typoscript.

Enable it via Site Settings:

The constants themselves no longer contain a switch. They are used when TypoScript constants is selected as the configuration source in Site Settings. Values still appear in the backend Constant Editor.

In setup.typoscript, these constants are mapped to plugin.tx_a11yes.settings. When a11yes.mode = typoScript, the resolver reads these mapped values.

Translations

Translation files are located at:

The path is configured via a pattern:

{language} is replaced by the current TYPO3 language in the ViewHelper, e.g. de or en.

Theme / Colour Customisation

A11yes uses CSS Custom Properties for the dialog appearance. The following variables control the colours:

Variable Description
--a11yes-foreground Primary text colour
--a11yes-secondary-foreground Secondary text colour
--a11yes-background Dialog background colour
--a11yes-secondary-background Background for input elements
--a11yes-section-border Section border colour
--a11yes-switch-background Switch background colour

Configuration via Site Settings

Theme colours are configured in the backend under Site Management > Sites > [Site] > Settings in the Design section. Each colour is available as a colour picker.

When a11yes.theme.enabled is active, a11yes.js automatically sets the values on :root when loading.

Configuration via TypoScript Constants

In the Constant Editor under plugin.tx_a11yes/theme:

Prerequisite: a11yes.mode: typoScript in Site Settings.

Colour Schemes (Examples)

Neutral (default)

Red

Purple

Green

The hex values from the examples can be used directly in Site Settings or TypoScript Constants.

Manual CSS Customisation (Sitepackage)

Alternatively, the variables can be set in the sitepackage via CSS, e.g. in a custom stylesheet:

Note: When a11yes.theme.enabled is active, the extension configuration overrides CSS values at runtime. For pure CSS customisation in the sitepackage, keep a11yes.theme.enabled disabled.

The variables can also be set inline in Fluid templates or layouts:

Notes for Developers

Backend Integration

The A11yes tool is also available in the TYPO3 backend – editors can use accessibility features directly while editing content. The backend integration can be disabled via Extension Configuration if needed.

Setting in the backend under:

Option:

Known Issues

The tool is not reliably available everywhere in the backend. Affected areas include:

In these cases, the toolbar button in the top backend bar is usually still available.


Deutsch

← English version

A11yes TYPO3-Integration

Diese Extension bindet das JavaScript Accessibility Tool A11yes in TYPO3 ein. Nach der Installation und der Einbindung von CSS und JavaScript über TypoScript steht das Tool im Frontend sofort zur Verfügung – standardmäßig über einen integrierten, fixierten Button rechts unten, der bei Bedarf deaktiviert und durch eigene Buttons oder Menüpunkte ersetzt werden kann.

Die weitere Konfiguration erfolgt über einen Fluid ViewHelper und kann anschließend auf zwei Wegen angepasst werden:

Welcher Konfigurationsweg aktiv ist, wird über den Konfigurationsschalter a11yes.mode gesteuert.

Enthaltene Dateien

Die Extension bringt eine gebündelte Version der A11yes-Library mit. Die aktuellen Dateien liegen unter:

Eine neuere Version der Library kann jederzeit von a11yes.com heruntergeladen und in Resources/Public/Contrib/ sowie Resources/Public/translations/ ersetzt werden.

Frontend-Verhalten

Das Initialisierungs-Script Resources/Public/JavaScript/a11yes.js findet alle Elemente mit der Klasse a11yes-open, liest deren data-params-Attribut aus und startet A11yes:

Die Assets werden über Configuration/TypoScript/setup.typoscript eingebunden:

ViewHelper und Partial

Für die Ausgabe des Buttons stehen zwei gleichwertige Wege zur Verfügung. Zusätzlich zum integrierten, fixierten Button rechts unten – der über a11yes.hideFixedButton (Site Settings) bzw. plugin.tx_a11yes.behavior.showFixedButton (TypoScript) abgeschaltet werden kann – lassen sich eigene Buttons oder Menüpunkte im Template definieren. Beide Varianten unten nutzen dieselbe Konfiguration aus Site Settings oder TypoScript; die Wahl hängt davon ab, wie viel Kontrolle über Markup und Position gewünscht ist.

Variante 1: ViewHelper direkt im Template

Der ViewHelper <rb:a11yesButton> erzeugt den Button mit der Klasse a11yes-open und schreibt die aufgelöste Konfiguration als JSON in data-params. Konfigurationswerte werden nicht als Fluid-Argumente übergeben, sondern zentral über den A11yesResolver gelesen.

Namespace im Fluid-Template registrieren:

Button mit eigenem Icon ausgeben:

Der Inhalt zwischen den ViewHelper-Tags wird als Button-Icon gerendert. Position, Abstände und zusätzliches Markup liegen vollständig im eigenen Template.

Variante 2: Fertiges Partial einbinden

Die Extension liefert ein vorkonfiguriertes Partial mit:

Dieses Partial nutzt intern ebenfalls <rb:a11yesButton> und positioniert den Button fixiert am rechten Seitenrand. Im Sitepackage wird der Partial-Pfad der Extension ergänzt:

Anschließend kann das Partial in einem Layout oder Template gerendert werden:

Welche Variante wann?

Variante Einsatz
ViewHelper direkt Eigene Position, eigenes Icon, Integration in Header/Footer oder bestehende Komponenten
Partial Schnelle Integration ohne eigenes Markup, Standard-Button out of the box

Beide Varianten funktionieren parallel zum gleichen JavaScript-Initialisierer. Entscheidend ist nur, dass mindestens ein Element mit der Klasse a11yes-open und gültigem data-params-Attribut im Frontend ausgegeben wird.

Konfigurationsquelle

In den Site Settings wird die Quelle über ein Dropdown entschieden:

Das Set muss in der Site-Konfiguration aktiviert sein:

Danach erscheinen die Felder im Backend unter:

Der Umschalter ist:

Automatisiertes Rendering (ohne eigene Fluid-Integration)

Wenn der Button nicht manuell per <rb:a11yesButton> im Template gesetzt werden soll, kann die Extension den Standard-Button automatisch per TypoScript (page.footerData) rendern.

Gesteuert wird das in den Site Settings:

Im TypoScript-Setup wird dazu eine Condition wie diese verwendet:

Dieser Modus ist sinnvoll, wenn ein funktionsfähiger A11yes-Trigger ohne Anpassungen an bestehenden Fluid-Templates benötigt wird.

Alter Weg: TypoScript Constants

Der klassische Weg wird über Configuration/TypoScript/constants.typoscript gepflegt.

Aktiviert wird dieser Weg über die Site Settings:

Die Constants selbst enthalten keinen Umschalter mehr. Sie werden berücksichtigt, wenn in den Site Settings die Konfigurationsquelle TypoScript constants gewählt ist. Die Werte erscheinen weiterhin im Backend im Constant Editor.

In setup.typoscript werden diese Constants nach plugin.tx_a11yes.settings gemappt. Wenn a11yes.mode = typoScript ist, liest der Resolver diese gemappten Werte.

Übersetzungen

Die Übersetzungsdateien liegen unter:

Der Pfad wird über ein Pattern konfiguriert:

{language} wird im ViewHelper durch die aktuelle TYPO3-Sprache ersetzt, z. B. de oder en.

Theme / Farbanpassung

A11yes nutzt CSS Custom Properties für das Erscheinungsbild des Dialogs. Folgende Variablen steuern die Farben:

Variable Beschreibung
--a11yes-foreground Haupttextfarbe
--a11yes-secondary-foreground Sekundäre Textfarbe
--a11yes-background Hintergrundfarbe des Dialogs
--a11yes-secondary-background Hintergrund für Eingabeelemente
--a11yes-section-border Rahmenfarbe von Abschnitten
--a11yes-switch-background Hintergrundfarbe von Schaltern

Konfiguration über Site Settings

Theme-Farben werden im Backend unter Site Management > Sites > [Site] > Settings im Bereich Design konfiguriert. Jede Farbe ist als Color-Picker verfügbar.

Wenn a11yes.theme.enabled aktiv ist, setzt a11yes.js die Werte beim Laden automatisch auf :root.

Konfiguration über TypoScript Constants

Im Constant Editor unter plugin.tx_a11yes/theme:

Voraussetzung: a11yes.mode: typoScript in den Site Settings.

Farbschemata (Beispiele)

Neutral (Standard)

Rot

Violett

Grün

Die Hex-Werte aus den Beispielen können direkt in Site Settings oder TypoScript Constants übernommen werden.

Manuelle CSS-Anpassung (Sitepackage)

Alternativ können die Variablen im Sitepackage per CSS gesetzt werden, z. B. in einer eigenen Stylesheet-Datei:

Hinweis: Wenn a11yes.theme.enabled aktiv ist, überschreibt die Extension-Konfiguration die CSS-Werte zur Laufzeit. Für reine CSS-Anpassungen im Sitepackage a11yes.theme.enabled deaktiviert lassen.

In Fluid-Templates oder Layouts können die Variablen auch inline gesetzt werden:

Hinweise für Entwickler

Backend-Integration

Das A11yes-Tool steht auch im TYPO3-Backend zur Verfügung – Redakteure können Barrierefreiheitsfunktionen direkt beim Bearbeiten von Inhalten nutzen. Die Backend-Integration kann bei Bedarf über die Extension Configuration abgeschaltet werden.

Einstellung im Backend unter:

Option:

Bekannte Probleme

Das Tool ist im Backend nicht überall zuverlässig erreichbar. Betroffen sind unter anderem:

In diesen Fällen bleibt der Toolbar-Button in der oberen Backend-Leiste in der Regel verfügbar.


All versions of a11yes with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^12.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rozumbunch/a11yes contains the following files

Loading the files please wait ...