Pear is the the old PHP-packagemanager, but most 'packages' are nowadays managed with composer on base of git-repositories.
Adding pear-packages to a composer based installation is a little challenge that shall be explained below.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types = 1); | |
| namespace WDB\PHP\Csv2content\Utility; | |
| defined('TYPO3_MODE') || die(); | |
| class CsvUtility | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * This file is part of the TYPO3 CMS project. | |
| * | |
| * It is free software; you can redistribute it and/or modify it under | |
| * the terms of the GNU General Public License, either version 2 | |
| * of the License, or any later version. | |
| * | |
| * For the full copyright and license information, please read the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Handle line endings automatically for files detected as text | |
| # and leave all files detected as binary untouched. | |
| * text=auto | |
| # Force the following filetypes to have unix eols, so Windows does not break them | |
| *.* text eol=lf | |
| # Windows forced line-endings | |
| /.idea/* text eol=crlf |
Repos with string or tag "TCA" related to TYPO3
- https://github.com/Nemo64/typo3api
An api-wrapper around typo3 functionality (currently only tca) - https://github.com/IchHabRecht/formengine_example
This is an example, how to add an own TCA field type for TYPO3 - https://github.com/wouter90/tca_analyzer
Analyzer for TCA changes done in ext_tables.php of installed extensions - https://github.com/bitpatroon/typo3_tca2
Allows additional function like conditions to if in pageTSConfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace HenrikZiegenhain\MyExt\DataProcessor; | |
| /*************************************************************** | |
| * Copyright notice | |
| * | |
| * (c) 2018 Henrik Ziegenhain <henrik@ziegenhain.me> | |
| * All rights reserved | |
| * | |
| * This script is part of the TYPO3 project. The TYPO3 project is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $hex = ''; | |
| $result = ''; | |
| $encoded = substr($hex, 2); | |
| while(strlen($encoded)) { | |
| $current = substr($encoded, 0, 2); | |
| $encoded = substr($encoded, 2); | |
| $result .= chr(hexDec($current)); | |
| } | |
| echo $result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## THIS IS ONLY TO TRUNCATE A TABLE COMPLETELY | |
| $tablename = 'xyz' | |
| $driver = new \Doctrine\DBAL\Driver\Mysqli\Driver; | |
| $queryBuilder = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( | |
| \TYPO3\CMS\Core\Database\Query\QueryBuilder::class, | |
| \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( | |
| \TYPO3\CMS\Core\Database\Connection::class, $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default'], $driver | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts":{ | |
| "command": [ | |
| "echo \"EVENT: command\\n\"", | |
| "VENDOR\\build\\command::myClassMethod" | |
| ], | |
| "pre-command-run": [ | |
| "echo \"EVENT: pre-command-run\\n\"", | |
| "VENDOR\\build\\preCommandRun::myClassMethod" | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| cd /D %~dp0 | |
| echo Diese Eingabeforderung nicht waehrend des Running beenden | |
| echo Bitte erst bei einem gewollten Shutdown schliessen | |
| echo Please close this command only for Shutdown | |
| echo Apache 2 is starting ... | |
| SET OPENSSL_CONF=F:\___XAMPP___\xampp-portable-win32-5.6.31-0-VC11\apache\conf\openssl.cnf | |
| REM IF EXIST F:\___XAMPP___\xampp-portable-win32-5.6.31-0-VC11\apache\bin | |
| SET PATH=%PATH%;F:\___XAMPP___\xampp-portable-win32-5.6.31-0-VC11\apache\bin |