YOURLS 1.8 “Mike Muir” released

It is with great pleasure and excitement that I announce the release of YOURLS 1.8 “Mike Muir”!

Hail Mike Muir 🤘❤️

First things first, in our now secular tradition to name YOURLS releases after a infamous metal vocalist, I’m dedicating this release to Mike Muir, cyco frontman from the sublime thrash punk band we all mosh to, Suicidal Tendencies. Damn I love this man. I suggest you tune in some relaxing music while reading the rest of this post and updating YOURLS.

Mike Muir, photo by my concert pal Ronan Thenadey. Best concert photograph ever, seriously.

So, YOURLS 1.8 ?

Yes, YOURLS 1.8 and a lot of reasons for you to update. Let’s list the major ones :

  • Much, much, very much better support for UTF8 and ᵮưȵƙƴ letters. The long running issue of “page title is weirdly encoded” should be a thing of the past, no matter the charset, the encoding or the alphabet used on the URL you’ll shorten. YOURLS also now fully support being installed on IDN domains out of the box, without the use of a plugin as it did before.
Take that, IDN and stuff
  • PHP compatibility : YOURLS 1.8 is of course compatible with PHP 8. We’re also dropping support for older PHP versions and are now advocating that you use at least 7.4. Although 7.2 is still supported we will probably make less efforts in the future than we did in the past to maintain compatibility with deprecated PHP.
  • Time and timezone management : till now, YOURLS was a happy mess of timezone “sort of” support. Now more! While the core code has been streamlined and simplified to only use UTC, we have also developed a neat timezones plugin to properly manage timezones and how date & time are displayed on your install.
  • Slightly updated UI and logo, all in SVG light and scalable goodness.
  • And of course several bug fixes and improvements under the hood – check the commit log if you are interested.

“Awesome YOURLS” is more awesome now

Awesome YOURLS is the curated list of, well, awesome things about YOURLS : plugins, translations, themes, install guides, tutorials, tools, packages for various platforms, applications and programming languages. It’s a truly amazing resource list.

The list has been improved lately : more content, more readable. More awesomeness. Be sure to check it, star it on Github and have your work featured there!

Update and tell friends to update !

As always, we advise you to update as soon as you can. And as always, we advise you to backup your DB before doing so, because, you know why.

And, as always, we’re counting on you : spread the word about this new release, share the news on Twitter, on your Facebook wall, on wherever you virtually exist and let your friends know about this.

Short URL to this post:

What’s new in YOURLS 1.7 : better HTTP requests handling

As you may know, YOURLS 1.7 was released a couple days ago (announcement). I promised a few blog posts highlighting the goodness and new features this version brings, so let’s get started.

Besides better protection against potential SQL injection attacks and overall security measures, what’s new in YOURLS 1.7?

Better HTTP requests handling

Instead of a half-baked home-grown set of functions to perform HTTP requests, YOURLS is now using the awesome PHP library Requests.

“Yeah, err, probably cool”, you’re thinking, “but how exactly is that useful for me?” I hear you, let me elaborate.

Proxy support

The first direct benefit for you, kind user, is that YOURLS is now proxy-compatible, and you can install it behind a proxy or firewall. The will primarily interest corporate users or anyone setting up a YOURLS shortener in a corporate environment. If you’re into this, be sure to check the documentation: YOURLS proxy support.

By the way, this is an excellent example of how open source projects can cross-pollinate each others. Requests is an excellent library I wanted to use, I contributed to it to add proxy support, and now it powers the inners of YOURLS.

Better support for UTF8 titles

There’s a more direct benefit for the masses of that HTTP request handling improvement. Now, YOURLS should more reliably fetch titles from pages you’re shortening, no matter how ẘεḯґ∂ and ḟüᾔḱƴ character set they’re using.

You mean people write like this? OMG.

This should work better than ever, with most combination of charsets, as declared by HTML pages or by server header.

Interactions with

And that is the one feature I’m particularly in love with. It’s so neat, it deserves its own blog post. Next time!

Short URL to this post: