bitexpert/sulu-securitytxt-bundle
Sulu bundle for managing security.txt configuration
Maintainers
Package info
github.com/bitExpert/sulu-securitytxt-bundle
Type:sulu-bundle
pkg:composer/bitexpert/sulu-securitytxt-bundle
Requires
- php: ^8.4
- sulu/sulu: ^2.6
- symfony/dependency-injection: ^7.4
- symfony/framework-bundle: ^7.4
- symfony/http-foundation: ^7.4
- symfony/http-kernel: ^7.4
- symfony/routing: ^7.4
Requires (Dev)
- jackalope/jackalope: ^2.0
- jackalope/jackalope-doctrine-dbal: ^2.0
- madewithlove/license-checker: ^3.0
- phly/keep-a-changelog: ^2.12
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^11.2
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.13
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT e885e1b5b7156f4ce1cf7c0433f0df63ec65d0d3
- Stephan Hochdörfer <S.Hochdoerfer.woop@bitExpert.de>
This package is auto-updated.
Last update: 2026-06-27 06:40:50 UTC
README
This is a Sulu Bundle to manage security.txt files for your Sulu webspaces.
According to securitytxt.org the main purpose of security.txt is to help make things easier for companies and security researchers when trying to secure platforms. Thanks to security.txt, security researchers can easily get in touch with companies about security issues.
Installation
composer require bitexpert/sulu-securitytxt-bundle
- Register the bundle in the file
config/bundles.php
BitExpert\Sulu\SecuritytxtBundle\BitExpertSuluSecuritytxtBundle::class => ['all' => true],
- Configure the routing as follows:
Create file config/routes/securitytxt_admin.yaml:
securitytxt_api: resource: "@BitExpertSuluSecuritytxtBundle/Resources/config/routing_api.yaml"
Create file config/routes/securitytxt_website.yaml:
securitytxt_website: resource: "@BitExpertSuluSecuritytxtBundle/Resources/config/routing_website.yaml"
- Run Doctrine Schema Update
./bin/adminconsole doctrine:schema:update -f
Usage
Once installed, this bundle adds a tab called "Security.txt" to the webspaces configuration which allows you to create new security.txt entries for the different webspaces. For each webspace only one security.txt configuration can be saved.
Since 0.5.0: Only users with the Securitytxt permissions can view, add, edit or delete the security.txt entries.
Contribute
Please feel free to fork and extend existing or add new features and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and adapt the documentation.
Want To Contribute?
If you feel that you have something to share, then we’d love to have you. Check out the contributing guide to find out how, as well as what we expect from you.
License
Sulu Security.txt Bundle is released under the MIT License.
