Websitegärtner's tool shed.

A completely disorganised collection of short technical documentation, instructions and templates for self-service. Many of the snippets helped us with web development at the time, but consider the creation date of the contributions as the best-before date, because some of them are no longer "up to date".

Category "webdevelopment".

View all articles
  • Ternary Operator ?: versus Null Coalescing Operator ?? versus Null Coalescing Assignment Operator ??= explained by cats

    In short, PHP provides two useful operators to simplify condition checking: the ternary operator (?:) and the null coalescing operator (??). Both operators are used to...

    To the article...
  • Convert Px to SEM / EM very quickly with Alfred

    There is a wonderful Alfred workflow on the Mac that converts Px to Rem: Download direct link: https://raw.githubusercontent.com/vitorgalvao/requested-alfred-workflows/master/Workflows/PxRemEm.alfredworkflow Simply install, then type CMD-Space: Alfred Bar "pxrem" and...

    To the article...
  • Setting up XDebug with PHPStorm and Valet Development Environment

    Preparation: Homebrew should be installed Valet should be installed and running: https://laravel.com/docs/7.x/valet Browser Extension for PHPSTORM should be installed: https://www.jetbrains.com/help/phpstorm/browser-debugging-extensions.html gerry@webgarten ~ % brew install...

    To the article...