becklyn / rad-bundle
This bundle provides basic components
Installs: 6 396
Dependents: 1
Suggesters: 1
Security: 0
Stars: 4
Watchers: 2
Forks: 3
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- ext-json: *
- beberlei/doctrineextensions: ^v1.3.0
- becklyn/rad-bundles: ^1.1.0
- doctrine/doctrine-bundle: ^2.7.2
- doctrine/orm: ^2.9.6
- psr/log: ^3.0.0
- scienta/doctrine-json-functions: ^4.1
- symfony/config: ^v6.2.0
- symfony/dependency-injection: ^v6.2.1
- symfony/form: ^v6.2.0
- symfony/http-kernel: ^v6.2.1
- symfony/property-access: ^v6.2.0
- symfony/translation-contracts: ^v3.2.0
- symfony/validator: ^v6.2.0
- twig/twig: ^v3.4.3
Requires (Dev)
- roave/security-advisories: dev-master
- symfony/phpunit-bridge: ^v6.2.0
- symfony/twig-bridge: ^v6.2.1
Suggests
- symfony/twig-bridge: To use the default form theme.
- 8.0.0
- 7.x-dev
- 7.14.2
- 7.14.1
- 7.14.0
- 7.13.4
- 7.13.3
- 7.13.2
- 7.13.1
- 7.13.0
- 7.12.1
- 7.12.0
- 7.11.2
- 7.11.1
- 7.11.0
- 7.10.7
- 7.10.6
- 7.10.5
- 7.10.4
- 7.10.3
- 7.10.2
- 7.10.1
- 7.10.0
- 7.9.4
- 7.9.3
- 7.9.2
- 7.9.1
- 7.9.0
- 7.8.2
- 7.8.1
- 7.8.0
- 7.7.0
- 7.6.0
- 7.5.4
- 7.5.3
- 7.5.2
- 7.5.1
- 7.5.0
- 7.4.6
- 7.4.5
- 7.4.4
- 7.4.3
- 7.4.2
- 7.4.1
- 7.4.0
- 7.3.0
- 7.2.3
- 7.2.2
- 7.2.1
- 7.2.0
- 7.1.4
- 7.1.3
- 7.1.2
- 7.1.1
- 7.1.0
- 7.0.7
- 7.0.6
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.3.2
- 6.3.1
- 6.3.0
- 6.2.1
- 6.2.0
- 6.1.0
- 6.0.0-alpha.3
- 6.0.0-alpha.2
- 6.0.0-alpha.1
- 5.x-dev
- 5.1.1
- 5.1.0
- 5.0.0
- 5.0.0-beta.7
- 5.0.0-beta.6
- 5.0.0-beta.5
- 5.0.0-beta.4
- 5.0.0-beta.3
- 5.0.0-beta.2
- 5.0.0-beta.1
- 4.x-dev
- 4.0.2
- 4.0.1
- 4.0.0
- 4.0.0-beta.4
- 4.0.0-beta.3
- 4.0.0-beta.2
- 4.0.0-beta.1
- 3.x-dev
- 3.0.2
- 3.0.1
- 3.0.0
- 3.0.0-alpha.4
- 3.0.0-alpha.3
- 3.0.0-alpha.2
- 3.0.0-alpha.1
- v2.2.20
- v2.2.19
- v2.2.18
- v2.2.17
- v2.2.16
- v2.2.15
- v2.2.14
- v2.2.13
- v2.2.12
- v2.2.11
- v2.2.10
- v2.2.9
- v2.2.8
- v2.2.7
- v2.2.6
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.2
- v2.0.1
- v2.0
- v1.0
- v0.3.0
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2
- v0.1
- dev-supports_on_3
- dev-legacy_support
This package is auto-updated.
Last update: 2023-02-14 09:08:10 UTC
README
This bundle provides RAD related functionality for the usage in Symfony.
becklyn/rad-bundle <= v7
is deprecated and was replaced bybecklyn/rad v8+
AJAX Protocol
This bundle uses a default AJAX protocol, that is used in the AjaxResponseBuilder
and can be used for your
project. The ajax call will always return an error 200, as it shouldn't flood the error tracking (with error 400
AJAX request).
The protocol looks like this:
interface AjaxResponse { /** * Whether the call succeeded. */ ok: boolean; /** * Any string status, like "ok" or "invalid-id" that * you can react to in your code (if you need to). */ status: string; /** * The response data. */ data: Record<number|string, any> | Array<any>; /** * A redirect target, where the AJAX handler should * redirect to. */ redirect?: string; /** * A toast message with optional type and action target. */ message?: { text: string; impact: "positive" | "negative" | "neutral"; action?: { label: string; url: string; }; }; }
There is a corresponding fetch client implementation in mojave
that can be used.
This type above is also available as generic TypeScript type in mojave
.
Form Extensions
This bundle automatically adds several form extensions.
Collection Labels Extension
This extension adds three additional optional labels for Collection
form fields:
empty_message
is displayed if there is no entry.entry_add_label
is the label of the "add entry" button.entry_remove_label
is the label of every "remove entry" button.