hessen.social ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
hessen.social ist die Mastodongemeinschaft für alle Hessen:innen und alle, die sich Hessen verbunden fühlen

Serverstatistik:

1,6 Tsd.
aktive Profile

#php

69 Beiträge56 Beteiligte5 Beiträge heute

🆕 blog! “Introducing Pretty Print HTML for PHP 8.4”

I'm delight to announce the first release of my opinionated HTML Pretty Printer for new versions of PHP.

Grab the code from Packagist
Contribute on GitLab

There are several prettifiers on Packagist, but I think mine is the only one which works with the new Dom\HTMLDocument class.

Table of Contents

What

This takes…

👀 Read more: shkspr.mobi/blog/2025/04/intro

#HTML #php

The HTML5 Logo.
Terence Eden’s Blog · Introducing Pretty Print HTML for PHP 8.4
Mehr von Terence Eden

i have to give #php serious credit - I did not specifically write #kiki to be platform-independent, and lazily used unixy backslashes everywhere

and it runs just fine in windows! the php authors put some serious work into automatic platform-independent sanity checks.

In PHP, when declaring the return type of an interface method, if I want to define a fluent interface and say "this method should return the instance of itself," which is best to use in the return type declaration: `self`, `static`, or the actual interface name?

for the past few years, i'm sure many of you have read my many lamentations about the death of the old, small web many of us grew up with.

there are tons of static site generators out there, but none of them did what i wanted: something that could build an entire site without futzing with javascript and library dependencies. i wanted something that we would have had in 2005, but didn't have in 2025.

in january, i decided to do something about it instead of whining. i started gluing together a few php scripts i had been using to build blogs, rss feeds and mini homepages. i even wrote a new mini markup language.

i thought it would take me a week. it took >3 months. 😅

it ran for the past month as globaltalk.network's interactive site, and many of you asked if i'd ever let other people spin up an instance. i can finally say: yes!

today, kiki is officially finished and released for public use. named after my little black house demon, it's small, fast, and sometimes well behaved. and, it's all written in php without a single external dependency. just unzip and go.

it's released as shareware - in the oldest, finest, jankiest meaning of the word: you're free to goof around with and share the unregistered version. build your own little kiki instance, and customize the heck out of it until it feels like your own little home in the world wide web:

tomodashi.com/kiki

#kiki#homepage#worldWideWeb

I just realized that I haven't updated the FOSS page on the main website for some time. Added short descriptions for a bunch of things that have been built and updated over the past year: Criteria (conditional logic in JSON), Penknife (a compact Blade-inspired template engine), Money (BCMath with rounding for financial calculations), and Colorspace (conversion between color models and more).

I've been busier than I thought!

More at abivia.com/foss

Abivia · Open Source SoftwareAbivia's contributions to Open Source include the Hydration, NextForm, and Ledger packages for PHP/Laravel.