| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 3.17.0 source code.tar.gz | 2026-06-03 | 439.1 kB | |
| 3.17.0 source code.zip | 2026-06-03 | 1.1 MB | |
| README.md | 2026-06-03 | 1.2 kB | |
| Totals: 3 Items | 1.5 MB | 0 | |
New features
1. Added command aliases support to #[AsCommand]
The #[AsCommand] attribute now accepts an aliases parameter, allowing a console command to be registered and invoked under several names. The scaffolder was also updated to generate commands with aliases out of the box.
Example Usage:
:::php
use Spiral\Console\Attribute\AsCommand;
#[AsCommand(name: 'app:user:create', aliases: ['user:new', 'user:add'])]
final class CreateUserCommand extends Command
{
// ...
}
by @gam6itko in https://github.com/spiral/framework/pull/1252
Other
- [spiral/csrf] Fixed
CsrfMiddlewarecookie missing thePathattribute by adding a configurablepathoption (default/) by @roxblnfk in https://github.com/spiral/framework/pull/1257 - [spiral/framework] Fixed
route:listcommand crash onLINK/UNLINKverbs by @gam6itko in https://github.com/spiral/framework/pull/1254 - [spiral/pagination] Hardened
Paginatorlimit handling and documented the component by @gam6itko in https://github.com/spiral/framework/pull/1255
Full Changelog: https://github.com/spiral/framework/compare/3.16.2...3.17.0