Download the PHP package tourze/sensitive-text-detect-bundle without Composer
On this page you can find all versions of the php package tourze/sensitive-text-detect-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/sensitive-text-detect-bundle
More information about tourze/sensitive-text-detect-bundle
Files in tourze/sensitive-text-detect-bundle
Package sensitive-text-detect-bundle
Short Description 敏感文本识别服务,提供文本内容的敏感性检测功能
License MIT
Informations about the package sensitive-text-detect-bundle
SensitiveTextDetectBundle
中文
A Symfony bundle for detecting sensitive text in content. This bundle provides a flexible interface for implementing content filtering and sensitive text detection with user context support.
Features
- Simple Integration: Easy to integrate with any Symfony application
- Flexible Interface: Replaceable detector implementation through the service container
- Context-Aware: Support for user-specific detection with UserInterface integration
- Framework Native: Built on Symfony's dependency injection and configuration system
- Extensible: Default implementation that can be easily replaced with custom logic
Requirements
- PHP 8.1+
- Symfony 6.4+
Installation
Install via Composer:
Quick Start
Register the Bundle in your Symfony application
Inject and use the service
Customizing the Detector
By default, the bundle uses DefaultTextSensitiveTextDetector implementation, which always returns false.
You can customize the detection logic by implementing the SensitiveTextDetector interface and registering your
implementation in the container:
API Reference
SensitiveTextDetector Interface
Default Implementation
The bundle includes a DefaultTextSensitiveTextDetector that always returns false. This is intended as a placeholder that you should replace with your own implementation.
Testing
Run tests:
Contributing
Contributions are welcome! Please ensure:
- All tests pass
- Code follows PSR-12 standards
- New features include tests
- Documentation is updated
License
This package is released under the MIT License. See the LICENSE file for details.
All versions of sensitive-text-detect-bundle with dependencies
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^4.1
easycorp/easyadmin-bundle Version ^4
knplabs/knp-menu Version ^3.7
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/framework-bundle Version ^7.4
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/security-core Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/symfony-dependency-service-loader Version 1.0.*