Download the PHP package oliverthiele/ot-icons without Composer

On this page you can find all versions of the php package oliverthiele/ot-icons. 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 ot-icons

OT Icons — Accessible SVG Icon ViewHelper for TYPO3

ViewHelper for rendering accessible inline SVG icons in Fluid templates for TYPO3 v13 and v14. Icons are resolved via mapping files — switch icon sets without touching templates.

TYPO3 Packagist Version PHP


Features


Requirements

Requirement Version
TYPO3 ^13.4 \| ^14.3
PHP >=8.3

Installation

The global Fluid namespace i: is automatically registered when the extension is loaded. No manual namespace registration required.


Configuration

Register the icon directory in your site configuration (config/sites/{site}/config.yaml):

Setting Description
defaultIconSet Mapping file to use (e.g. FontAwesome_7)
defaultIconStyle Fallback style for icons without explicit style
iconDirectory Path (using EXT:) to your compiled SVG files
customMappingDirectory Optional directory for custom mapping overrides

Build system integration (e.g. Webpack)

Copy SVG files from your icon library into the public asset directory:


Usage in Fluid

Available attributes

Attribute Type Description
identifier string Internal icon key (mapped to file name)
size string Icon size (xs, sm, lg, 1x10x)
iconStyle string Style alias (s, r, b, l, etc.)
returnAs string Output type (inline, sprite, base64) — currently only inline
id string Optional HTML id attribute
additionalClasses string Extra CSS classes
aria-hidden bool Hides the icon from screen readers
aria-label string Text alternative (rendered inside <title>)
aria-description string Additional descriptive text
role string Accessibility role (img, presentation, none, etc.)
title string Tooltip text

Custom mapping overrides

Create a file at EXT:my_sitepackage/Configuration/Mappings/{IconSetName}.php with only the identifiers that differ:


Accessibility


Mapping files

Each icon set has a mapping file under Configuration/Mappings/{IconSetName}.php. Example FontAwesome_7.php:


License

GPL-2.0-or-later — see LICENSE

Author

Oliver Thiele — oliver-thiele.de


All versions of ot-icons with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
typo3/cms-core Version ^13.4||^14.3
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 oliverthiele/ot-icons contains the following files

Loading the files please wait ...