jakota / typo3toolbox
Typo3 ToolBox of Utility functions and ViewHelpers.
Installs: 8 133
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Type:typo3-cms-extension
Requires
- doctrine/sql-formatter: ^1.1
- psr/http-factory: ^1.0
- typo3/cms-backend: ^10.4 || ^11.5 || ^12.4
- typo3/cms-core: ^10.4 || ^11.5 || ^12.4
- typo3/cms-extbase: ^10.4 || ^11.5 || ^12.4
- typo3/cms-fluid: ^10.4 || ^11.5 || ^12.4
- typo3/cms-frontend: ^10.4 || ^11.5 || ^12.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.4
- helmich/typo3-typoscript-lint: ^2.5
- phpstan/phpstan: ^1.3
- saschaegerer/phpstan-typo3: ^1.8.9
Replaces
- typo3-ter/typo3toolbox: 4.0.2
- dev-main
- 4.0.2
- 4.0.1
- 4.0.0
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.7.1
- 2.7.0
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.0.0
- dev-refactor-handle-typing-correct
- dev-fix-parse-json-correct
This package is auto-updated.
Last update: 2024-12-21 16:52:04 UTC
README
ToolBox of Utility functions and ViewHelpers.
Configuration
To use this extension, require it in Composer:
composer require jakota/typo3toolbox
Utility functions
DebuggerUtility for SQL queries
Debug your SQL queries made easy.
Dump SQL Query for createQuery
$query = $this->createQuery(); DebuggerUtility::debugQuery($query)
Dump SQL Query for QueryBuilder
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('table')->createQueryBuilder(); $queryBuilder ->select('*') ->from('table') ->where( $queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter(123)), ) ->setMaxResults(1) ; DebuggerUtility::debugQuery($queryBuilder)
ViewHelpers
install
Add to template
<html xmlns:t3tb="http://typo3.org/ns/JAKOTA/Typo3ToolBox/ViewHelpers" data-namespace-typo3-fluid="true">
Find image metadata from DB
{t3tb:findImageMetadataFromDB(uid:image.originalResource.properties.file,language:image.originalResource.properties.sys_language_uid)}
Relative Date
<t3tb:relativeDate value="{newsItem.datetime}"/>
TBD