Skip to content

Instantly share code, notes, and snippets.

View manuelselbach's full-sized avatar

Manuel Selbach manuelselbach

  • Frankfurt am Main
View GitHub Profile
@manuelselbach
manuelselbach / setup.sh
Last active July 25, 2023 16:02
Install script for my personal tool chain (Mac OS)
#!/bin/bash
set -e
# insert a line to a file if the line does not already exist
# - first parameter is the file to insert the line
# - second parameter is the line to insert. It'll only be inserted if not already exists
# - third parameter is optional. This will override the search behavior.
# Instead of searching for the line of parameter 2 this term is used.
function insertLineIfNotExists {
FILE=$1
@manuelselbach
manuelselbach / HowToAddACustomElementForTheFormEditorOfExtForm.md
Last active February 6, 2024 14:56
How to add a custom element for the formEditor of ext:form

EXT:form How to add a custom form element

If you like to add a custom form element, please follow these steps. For detailed information and documentation of ext:form please visit the official documentation: https://docs.typo3.org/typo3cms/extensions/form/Index.html

Basics

First of all create a new extension, which will hold all the configuration, templates, etc.

@manuelselbach
manuelselbach / README.md
Last active February 19, 2024 11:41
xdebug docker on macOS with PhpStorm

Use xdebug with docker on macOS and PhpStorm

To use xdebug with macOS and docker is quite, let´s call it tricky ;)

The following steps need to be proceed to get it working:

  1. use the config from the xdebug.ini wihtin your docker web container. Important: set remote_connect_back to off

UPDATE

@manuelselbach
manuelselbach / Composer retrieve a list of packages.md
Last active March 15, 2024 12:53
Composer: Get a list of possibly installable packages

Composer: Get a list of possibly installable packages

If you maintain your depending packages in a PHP project with composer (which you really should do!), you may want to get an idea of which packages might be possible to be updated.

composer outdated

This is very easy to do with composer outdated see: https://getcomposer.org/doc/03-cli.md#outdated. This will provide a list of packages in a new version: