Verified against Semitexa Ultimate 2026.10.03.1952

Crud attributes

Every attribute declared by Crud, with the signature the code has and a usage quoted from the codebase.

#[AsCollectionFeed]

Semitexa\Crud\Attribute\AsCollectionFeed

Applies to: class

parameter type required
path string yes
name string yes
model string no
paginationMode string no
defaultPerPage int no
perPageOptions array no
maxPerPage int no
countThreshold int no
doc string no
source string no
watch array no
#[AsCollectionFeed(path: '/crud-fixture/articles/feed', name: 'crud-fixture.articles.feed', model: CrudFixtureArticleModel::class, defaultPerPage: 10)]
class ArticlesFeedFixture extends CollectionFeed

— vendor/semitexa/crud/tests/Unit/CollectionFeedTest.php

#[AsCrud]

Semitexa\Crud\Attribute\AsCrud

Applies to: class

parameter type required
id string yes
path string yes
model string yes
label string yes
plural string no
permission string no
nav string no
icon string no
layout string no
paginationMode string no
defaultPerPage int no
perPageOptions array no
maxPerPage int no
countThreshold int no
doc string no
permissions array no
#[AsCrud(id: 'test.gadgets', path: '/crud/gadgets', model: CrudGadgetModel::class, label: 'Gadget', permission: 'gadgets', nav: 'Shop')]
final class GadgetCrudFixture extends CrudDefinition

— vendor/semitexa/crud/tests/Unit/CrudScreenTest.php

#[AsCrudAction]

Semitexa\Crud\Attribute\AsCrudAction

Applies to: class

Takes no arguments.

#[AsCrudAction]
final class MarkGadgetsFixture implements CrudActionHandlerInterface

— vendor/semitexa/crud/tests/Unit/CrudScreenTest.php

#[AsSettingsPage]

Semitexa\Crud\Attribute\AsSettingsPage

Applies to: class

parameter type required
id string yes
path string yes
title string yes
group string no
description string no
permission string no
nav string no
icon string no
order int no
layout string no
doc string no
#[AsSettingsPage(id: 'test.shop', path: '/settings/shop', title: 'Shop', group: 'shop', permission: 'shop.settings', nav: 'Admin', order: 1)]
final class ShopSettingsFixture extends SettingsDefinition

— vendor/semitexa/crud/tests/Unit/SettingsPageTest.php

Have a product idea?One free MVP every month