Categories
koseven PHP

ko8 – Kohana with PHP 8

Hello,

Short version: Kohana runs on PHP 8 again. It is called ko8. I am not going to maintain it.

Long version, because this is the last post in a series I did not plan, and no one asks.

I started using Kohana in 2011, at TuManitas. Jesus Diez recommended it after we evaluated a few frameworks, and he was right. Small footprint, fast to learn, modules (ORM, Image, Auth), HMVC, good community. What else do you need.

At the end of 2011 we announced Open Classifieds 2.0 on Kohana. It took months. Kohana 3.3 came out in 2012 with PSR-0, I was too deep in the migration to move again, so OC stayed on 3.2.3. That was a mistake, but a cheap one at the time.

Then Kohana died. Final releases in 2014, forum down for weeks, the core developers did not believe in MVC anymore and did not use the framework. Fair enough. I moved OC to 3.3.x anyway — a bit messy but it worked.

In 2015 PHP 7 was coming and Kohana was not going to support it. I spent a month checking compatibility, sent a couple of patches that never got merged, and published the fixes as gists. One file for Exception.php, one for pagination, one for APCu. That was all PHP 7 needed.

So I put those fixes in a fork and called it Koseven, and announced it in January 2017. I said it back then: nothing new, nothing fancy, just small stuff. And yes, YAF (yet another fork). It held for nine years. In April 2026 it was archived too, with a last commit that says “docs: project archived — thank you everyone”.

Same place as 2015, but a few PHP versions later. each() and money_format() were gone, strftime() and utf8_decode() deprecated, count(null) an exception, and mysqli throws instead of returning FALSE. The application still works, the platform underneath it does not.

So I did it again. ko8 is the Koseven 3.3.9 API with the PHP 8 problems fixed, and nothing else. Same classes, same Route::set(), same ORM::factory(), same cascading filesystem. Copy system/ and modules/, keep application/, run the doctor, fix the two or three lines it tells you about.

I tested it on Open eShop, which is the only test I trust (real code from 2013). Copy the framework, run the doctor, fix one money_format() call and one implicit nullable. That is it. Home, listing, product, search, login, contact, RSS, panel: all 200, no deprecations, empty error log, on PHP 8.5.

The framework’s own pages were old HTML, so the error page, the installer, the profiler, pagination and the docs are Tailwind now. Not because production cares, but because the first page a developer sees should not look abandoned.

1,484 tests, most of them inherited from Kohana and Koseven and ported mechanically. CI runs on PHP 8.1 to 8.5. If a link in the guide is broken, the build fails.

And the honest part, again: I am not going to maintain ko8. 

I am not using it in production. I did it because I wanted to know if a framework I started using in 2011 could still run on a PHP from 2026, and how much of the boring part an AI could do without breaking it (almost all of it).

The code is BSD-3-Clause. Fork it, rename it, publish it, support for it. You do not need to ask. Do whatever you want.

Links:

Enjoy!!

Leave a Reply