Skip to content

Instantly share code, notes, and snippets.

@koehnlein
koehnlein / .gitlab-ci.yml
Last active December 1, 2021 15:21
simple deployment based on TYPO3 Surf and Gitlab CI
stages:
- deploy
# use caching
cache:
key: "$CI_BUILD_REF_NAME/$CI_BUILD_STAGE"
paths:
- .caches/
variables:
@smichaelsen
smichaelsen / howto.md
Last active February 21, 2019 13:23
TYPO3 on php dev server

How-to develop TYPO3 projects locally with the built-in PHP dev server

You can develop TYPO3 projects locally without MAMP, Vagrant or Docker.

This how-to is targeted for TYPO3 developers who want to run and develop their projects on their Mac. This solution might work in a similar way on other operating systems. Feel free to add helpful information in the comments.

Prerequesite: Switchable PHP versions

One time setup

@einpraegsam
einpraegsam / LanguageRedirect.php
Last active December 14, 2021 15:17
TYPO3: Simply redirect a visitor to secondary language if browser does not support default language using PSR-15 Middleware
<?php
declare(strict_types=1);
namespace In2code\In2template\Middleware;
use CodeZero\BrowserLocale\BrowserLocale;
use CodeZero\BrowserLocale\Filters\LanguageFilter;
use In2code\In2template\Utility\ObjectUtility;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;