Verified against Semitexa Ultimate 2026.11.17.1407
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 |
defaultSort |
string |
no |
access |
Semitexa\Core\Auth\PayloadAccessType |
no |
reason |
string |
no |
#[AsCollectionFeed(path: '/orders/feed', name: 'orders.feed', model: OrderResource::class,
defaultPerPage: 50, perPageOptions: [50, 100], defaultSort: '-total')]
final class OrdersFeed extends CollectionFeed
— vendor/semitexa/crud/src/Attribute/AsCollectionFeed.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 |
defaultSort |
string |
no |
#[AsCrud(id: 'shop.products', path: '/products', model: ProductResource::class, label: 'Product',
permission: 'catalog', nav: 'Content', defaultSort: '-updatedAt')]
final class ProductCrud extends CrudDefinition
— vendor/semitexa/crud/src/Attribute/AsCrud.php
#[AsCrudAction]
Semitexa\Crud\Attribute\AsCrudAction
Applies to: class
Takes no arguments.
#[AsCrudAction]
final class SendPasswordResetLink implements CrudActionHandlerInterface
— vendor/semitexa/crud/src/Application/Service/Action/SendPasswordResetLink.php
#[AsProtectedFeed]
Semitexa\Crud\Attribute\AsProtectedFeed
Applies to: class
| parameter | type | required |
|---|---|---|
path |
string |
yes |
name |
string |
yes |
model |
string |
no |
source |
string |
no |
paging |
Semitexa\Crud\Domain\Model\FeedPaging |
no |
watch |
array |
no |
defaultSort |
string |
no |
doc |
string |
no |
#[AsProtectedFeed(
path: '/crud-fixture/protected/orders/feed',
name: 'crud-fixture.protected.orders.feed',
model: OrderRowFixture::class,
paging: new FeedPaging(defaultPerPage: 50, perPageOptions: [50, 100]),
defaultSort: '-id',
)]
#[RequiresPermission('orders.read')]
final class ProtectedOrdersFeedFixture extends CollectionFeed
— vendor/semitexa/crud/tests/Fixtures/Access/ProtectedOrdersFeedFixture.php
#[AsPublicFeed]
Semitexa\Crud\Attribute\AsPublicFeed
Applies to: class
| parameter | type | required |
|---|---|---|
path |
string |
yes |
name |
string |
yes |
reason |
string |
yes |
model |
string |
no |
source |
string |
no |
paging |
Semitexa\Crud\Domain\Model\FeedPaging |
no |
watch |
array |
no |
defaultSort |
string |
no |
doc |
string |
no |
#[AsPublicFeed(
path: '/crud-fixture/public/prices/feed',
name: 'crud-fixture.public.prices.feed',
reason: 'the public price list',
model: OrderRowFixture::class,
)]
final class PublicPricesFeedFixture extends CollectionFeed
— vendor/semitexa/crud/tests/Fixtures/Access/PublicPricesFeedFixture.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: 'shop.store', path: '/settings/store', title: 'Store', group: 'shop',
permission: 'settings.manage', nav: 'Account')]
final class StoreSettings extends SettingsDefinition
— vendor/semitexa/crud/src/Attribute/AsSettingsPage.php