Texy 3.0: Perfection Remains Untouched

Fifteen years, several versioning systems, several encodings, several of my life relationships – and Texy is still here. Version 3.0 brings PHP 7.1 goodies, but otherwise it's exactly the same. And one day it will insert a non-breaking space between your “in” and “peace.”

How to Mock Final Classes?

The final keyword is a great tool for object-oriented design – until you need to mock the class. Fortunately, there's some incredibly dark magic: Nette Tester and the BypassFinals library remove final on-the-fly. One line of code and the problem is gone.

How to Summarily Name Classes and Interfaces?

An interface is technically just a trimmed-down class, so the collective term for classes and interfaces is… classes. Elegant, right? Except then you don't know what to call classes that aren't interfaces. Sometimes it's better to forget that you're right.

Everything About Output Buffering in PHP

Output buffering in PHP looks trivial – until you hit a security hole during script termination, broken flags, or the paradox where a bare ob_start() slows down your server instead of speeding it up. A complete guide to what the documentation coyly left out.

PHP 5.4 Short Arrays Converter

A dead-simple CLI tool that converts between array() and [] syntax using PHP's native tokenizer — no regexes, no prayers. Battle-tested against thousands of files and works both ways with --reverse. Grab it from GitHub.

Frameworks are a Relic

Monolithic frameworks are falling apart into components, and anyone who hasn't figured that out yet has been sleeping through the times. Instead of one big bundle, you put together exactly what you need, update piece by piece, and don't have to wait for the next big release. Nette has nailed this, the others are still trying to catch up.

Nette is the 3rd Most Popular Framework!

Nette finished third in the worldwide SitePoint poll for the best PHP framework of 2015. The Czech framework broke through the language barrier and the world took notice – thanks to satisfied users who simply went and voted. I really didn't expect this result.

Supercharged DI Heart for Your Applications

People outside of Nette have fallen in love with the Nette DI container too. Three lines of code, a NEON configuration, and you've got a generator that spits out clean PHP code as fast as hand-written. I'll show you how to deploy it anywhere – no framework lock-in, no excuses.

Farewell and Goodbye, Nette 2.0 & PHP 5.2

Nette 2.0 brought Dependency Injection, NEON, and a new database layer – and unlike Zend or Symfony, it didn't throw its users overboard. It also maintained PHP 5.2 support, where anonymous functions were handled via create_function and $GLOBALS. This era is now definitively coming to an end.

Composer: How to Install in Different Ways

Composer offers three ways to install packages, but one of them is utter nonsense and you should never use it. I explain why composer global require is like forcing ten random developers to share a single vendor folder – and when to reach for create-project instead of require.

That's all. More articles are on the way.

phpFashion © 2004, 2026 David Grudl | o blogu

Ukázky zdrojových kódů smíte používat s uvedením autora a URL tohoto webu bez dalších omezení.