Skip to content

Instantly share code, notes, and snippets.


Thomas Löffler spoonerWeb

View GitHub Profile
ohader / .htaccess
Last active Jun 2, 2021
Apache HTML, SVG, PHP restricted handlers
View .htaccess
# Additions to existing Apache's .htaccess rules
# Security: Enforce file types matching at end of filename only
# see
# see
<IfModule mod_mime.c>
RemoveType .html .htm
<FilesMatch ".+\.html?$">
AddType text/html .html
AddType text/html .htm
garbast / .gitlab-ci.yml
Created Mar 8, 2019
Deployment with deployerphp and gitlabci
View .gitlab-ci.yml
- $CI_PROJECT_DIR/vendor
- $CI_PROJECT_DIR/.Build/vendor
- composer
- deploy
einpraegsam / datamappingExtbase.php
Last active Aug 22, 2022
Use DataMapper class in TYPO3 to convert an array into an object
View datamappingExtbase.php
public function mapProperties(): AnyModel
$properties = [
'uid' => 123,
'pid' => 123,
'firstname' => 'Alex',
'lastname' => 'Kellner'
'email' => ''
$dataMapper = $this->objectManager->get(TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper::class);
cedricziel / FacebookVideoHelper.php
Created Oct 7, 2016 — forked from spoonerWeb/FacebookVideoHelper.php
Facebook video integration in TYPO3 (needs some love for FE rendering)
View FacebookVideoHelper.php
namespace Vendor\ExtensionKey\Helpers;
* 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.