Skip to content

Instantly share code, notes, and snippets.

# Definieren eines Ankers für gemeinsame Konfigurationen
.deploy_template: &deploy_template
stage: deploy
image: php:8.3-cli
before_script:
# Installieren notwendiger Tools und Abhängigkeiten
- apt-get update && apt-get install -y git unzip libzip-dev libicu-dev libonig-dev rsync openssh-client
# Installieren und Aktivieren von PHP-Erweiterungen
- docker-php-ext-install mbstring intl zip
# Installieren von Composer
hosts:
production:
hostname: 'IP'
remote_user: 'USERNAME'
port: 22
deploy_path: '/home/www/projekt/production'
staging:
hostname: 'IP'
remote_user: 'USERNAME'
@wowaTYPO3
wowaTYPO3 / renovate.json
Created February 13, 2025 20:41
renovate.json
{
"extends": [
"config:recommended",
":disableMajorUpdates"
],
"enabledManagers": [
"composer"
],
"packageRules": [
{
@wowaTYPO3
wowaTYPO3 / renovate.json
Created January 13, 2025 10:15
renovate.json
{
"extends": [
"config:recommended",
":disableMajorUpdates"
],
"enabledManagers": [
"composer"
],
"packageRules": [
{
@wowaTYPO3
wowaTYPO3 / deploy.php
Created January 13, 2025 10:13
deploy.php
<?php
declare(strict_types=1);
namespace Deployer;
// Include base recipes
require 'recipe/common.php';
require 'contrib/cachetool.php';
require 'contrib/rsync.php';
@wowaTYPO3
wowaTYPO3 / deploy.yml
Created January 13, 2025 10:12
.github/workflows/deploy.yml
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="EXT:vt12/Resources/Private/Language/locallang.xlf" date="2023-05-09T20:22:32Z" product-name="vt12">
<header/>
<body>
<trans-unit id="vt12.logoAlt" resname="vt12.logoAlt">
<source>Alt-Text: Alternative text for the logo, important for accessibility</source>
</trans-unit>
</body>
</file>
@wowaTYPO3
wowaTYPO3 / config.yaml
Last active March 2, 2023 06:38
How to integrate the imap module for PHP in DDEV projects.
name: newsletter
type: php
docroot: public
php_version: "7.4"
webserver_type: apache-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<nav id="menu">
<header class="major">
<h2>
<f:translate key="LLL:EXT:vt11/Resources/Private/Language/locallang.xlf:menu" />
</h2>
</header>
<ul>
<f:for each="{mainMenu}" as="item">
@wowaTYPO3
wowaTYPO3 / Input.html
Last active January 27, 2023 06:30
/Resources/Private/Extensions/powermail/Partials/Form/Field/Input.html
<div
class="powermail_fieldwrap powermail_fieldwrap_type_input powermail_fieldwrap_{field.marker} {field.css} {settings.styles.framework.fieldAndLabelWrappingClasses}">
<f:render partial="Form/FieldLabel" arguments="{_all}" />
<div class="{settings.styles.framework.fieldWrappingClasses}">
<f:if condition="{vh:validation.fieldTypeFromValidation(field:field)} == 'email'">
<f:then>
<f:form.textfield type="{vh:validation.fieldTypeFromValidation(field:field)}" property="{field.marker}"
placeholder="{field.placeholder}" value="{vh:misc.prefillField(field:field, mail:mail)}"
class="powermail_input {settings.styles.framework.fieldClasses} {vh:validation.errorClass(field:field, class:'powermail_field_error')}"