NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #294 most downloaded on Packagist
🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.
Last release 7 months ago
26 Feb 2026
Ships fairly regularly
a new release about every 3 months
Rarely documented
notes for 9 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
78 releases · first in 2014
The $namespace parameter in ClassLike constructors is deprecated. Use setNamespace() instead. The old signature still works for now, but will be remov…
This release focuses on making namespaces and classes work together more naturally. Classes now know which namespace they belong to, constructors accept fully qualified names, and a new unified add() method on PhpFile ties it all together. Under the hood, the Factory got a thorough refactoring and the codebase passed its first mandatory static analysis check.
PhpNamespace::add() now automatically assigns itself as the namespace of any ClassLike passed to it. If your code relied on getNamespace() returning null after adding a class to a namespace, you'll need to update that assumption.
PhpFile::add() – a single entry point for adding classes, interfaces, traits, enums, functions, and namespaces to a file. It handles namespace creation and bracket syntax automatically, so you can build a complete file with just add() calls.
ClassLike::getFullName() – returns the fully qualified name when the class belongs to a namespace (e.g., App\Model\User), the short name otherwise, or null for anonymous classes.
ClassLike constructors now accept FQN – pass 'App\Model\User' and the namespace is extracted automatically. No need to create the namespace separately for simple cases.
PhpNamespace::add() accepts GlobalFunction – the unified add() method now handles functions alongside class-like types, making the namespace API more consistent.
The $namespace parameter in ClassLike constructors is deprecated. Use setNamespace() instead. The old signature still works for now, but will be removed in a future version.
One column per quarter.
Nothing published for this version
addTrait() second argument is deprecated (BC break)
OAuth 2.0 authentication for Gmail and Microsoft, one-click unsubscribe headers, Ed25519 DKIM signing, a real CSS cascade for inlining, and a security patch that alone makes updating worth it. Fully backward compatible.
David Grudl
2 months ago
final promoted property in PHP 8.5
Factory::fromClassReflection() extracts property hook bodies
Factory::fromClassReflection() extracts property hook bodies (#172)Factory::fromClassReflection() rejects $withBodies for interfacesadded support for PHP 8.4 features
ClassManipulator::implement() can implement abstract classesClassManipulator::implementInterface() renamed to implement()Parameter & Property: isNullable() returns true when default value is null (possible BC break)
isNullable() returns true when default value is null (possible BC break)added PhpNamespace::getClass() & getFunction()
PhpNamespace::getClass() & getFunction()CommentAware::removeComment()PhpFile::removeNamespace()from() accepts first-class callablesPsrPrinter: opening bracket on the correct line #155
ClassLike::from return type assert the subclass type (BC break) (#154)Dumper::dumpArray(), dumpArguments() optimizationaddMember(), addMethod(), addProperty(), addConstant(), addCase() #152Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Extractor::extractAll() fixed file comment parsing
Extractor::extractAll() fixed file comment parsingNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →