fsi / resource-repository-bundle
Resource repository bundle
Installs: 21 870
Dependents: 3
Suggesters: 0
Security: 0
Stars: 2
Watchers: 7
Forks: 6
Open Issues: 5
Type:symfony-bundle
Requires
- php: ^7.4|^8.0
- doctrine/dbal: ^2.8|^3.0
- doctrine/doctrine-bundle: ^1.12|^2.3
- symfony/dependency-injection: ^4.4|^5.0
- symfony/doctrine-bridge: ^4.4|^5.0
- symfony/form: ^4.4|^5.0
- symfony/framework-bundle: ^4.4|^5.0
- symfony/property-access: ^4.4|^5.0
- symfony/validator: ^4.4|^5.0
- twig/twig: ^2.13|^3.0
Requires (Dev)
- doctrine/orm: ^2.5
- friendsofsymfony/ckeditor-bundle: ^2.1
- fsi/doctrine-extensions-bundle: ^2.1@dev
- fsi/files: ^1.1
- fsi/form-extensions-bundle: ^2.0@dev
- phpspec/phpspec: ^6.0|^7.0
- phpstan/phpstan: ^1.9.0
- phpstan/phpstan-phpunit: ^1.3.0
- phpunit/phpunit: ^8.0
- squizlabs/php_codesniffer: ^3.5
- symfony/phpunit-bridge: ^5.2
Suggests
- friendsofsymfony/ckeditor-bundle: For using ckeditor resource type
- fsi/doctrine-extensions-bundle: For using fsi_file resource type
- fsi/files: For using web_file resource type
README
This bundle provides an easy and extendible way of creating various editable resources. Be it simple or formatted text, an image, a PDF file or a number value, you can use one of the predefined types to handle it's database storage and displaying in template. Should you require to, you can define your own types.
Basically, this bundle exists so you do not have to create dedicated entities for simple content.
In order to access and modify said resources, you will have to use the Repository/Repository class (registered as a service). It will automatically fetch, save and handle the values conversion.
For displaying the values in templates, the bundle is integrated with Twig templating language.
All of the above are described in detail in the documentation linked below.
Documentation: