Software

config

config on github

I used this simple configuration class in some smaller projects already, so I decided to extract it as a package. Albeit being small and simple, it usually offers enough functionality when you just want to read configuration from plain PHP arrays (either inline or from files).

It was designed to not add any other dependencies to your project. If you require YAML support, this could e.g. be achieved by using a 3rd-party YAML parser.

More information and examples can be found in the README file.

http-helper

http-helper on github

A bunch of helper functions can be useful during your everyday work with http requests and responses, using the two most common formats for PHP currently: PSR-7 and Symfony HttpFoundation.

Using requests or responses as object representations is of course convenient during programming, but having a look at the simple plain text of it is much easier if you need to debug your code.

These little functions (which are basically more or less just utilising other packages) allow you easy access during debugging sessions. Check out the official documentation for examples and more details!

cwmobileredirect

cwmobileredirect in the TER

As almost every extension I guess, this was developed because I needed the functionality for a project. Obviously some others found it useful too, by today it has over 9,000 downloads.

cwmobileredirect enables easy to handle redirection to a mobile version of your Typo3 website. A common approach is to fully load the non-mobile optimized version first and then ask the user to switch to the mobile version. Since this can be really annoying, this extension hooks into the Typo3 rendering process very early and redirects to the mobile version before the desktop version is even submitted.

It uses the detection script from detectmobilebrowsers.com to very effectively detect almost all mobile devices. Furthermore it supports Cookie-based switching between the normal and the mobile view.

Of course it can be also found on Typo3 Forge:

cwmobileredirect on Typo3 Forge

cwenvbanner

cwenvbanner in the TER (still alpha, but getting better!)

If you ever worked with Typo3 and different environments (e.g. Test, Staging, Live), you might know that warm feeling of Adrenalin rushing through your body when you realized: “Dang, I was on Live all the time”. Don’t be afraid, help is near!

It adds a small, customizable Banner in both Frontend and Backend of your Typo3 environments (cw = Carsten Windler, env = environment and banner = banner, yeah, you got it already, didn’t you?) to visually guide you to the correct browser window all the time. Yes, I really wrote this extension for me in the first place. Wait a minute, where did I just dropped that table…

It comes with absolutely amazing killer features, e.g. the banner can be configured to be visible only for certain users, and much more! Be sure to have a look at the README.md (until I find the time to finish the documentation… yes, yes, I know…).

If you find bugs, or you have cool ideas for more features, don’t hesitate to do so:

cwenvbanner on Typo3 Forge

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.