PHPackages                             tourze/sensitive-text-detect-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. tourze/sensitive-text-detect-bundle

ActiveSymfony-bundle[Security](/categories/security)

tourze/sensitive-text-detect-bundle
===================================

敏感文本识别服务，提供文本内容的敏感性检测功能

1.1.0(4mo ago)01921MITPHPCI passing

Since Apr 20Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/sensitive-text-detect-bundle)[ Packagist](https://packagist.org/packages/tourze/sensitive-text-detect-bundle)[ RSS](/packages/tourze-sensitive-text-detect-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (29)Versions (5)Used By (1)

SensitiveTextDetectBundle
=========================

[](#sensitivetextdetectbundle)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/6045d18ad58209bdd4f7e6d7ffdbfebfd07c300f6e6007879d076f6f69e4561d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f73656e7369746976652d746578742d6465746563742d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/sensitive-text-detect-bundle)[![Build Status](https://github.com/tourze/php-monorepo/workflows/PHPUnit%20Test/badge.svg)](https://github.com/tourze/php-monorepo/actions)[![Total Downloads](https://camo.githubusercontent.com/09a319434890b274587eb13ec1d211194367519ef8d4359984641412717d4390/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f73656e7369746976652d746578742d6465746563742d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/sensitive-text-detect-bundle)[![License](https://camo.githubusercontent.com/c1cb36c2af64ca746b0c93ced5362f998feeb1c98cd34c730d201cc9f91e881a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f73656e7369746976652d746578742d6465746563742d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/sensitive-text-detect-bundle)[![Coverage Status](https://camo.githubusercontent.com/597d3736c612eb152d4c13a37f4e87afd6af836788df1857d930b70903f9553d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f746f75727a652f7068702d6d6f6e6f7265706f2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/tourze/php-monorepo?branch=master)

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
--------

[](#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
------------

[](#requirements)

- PHP 8.1+
- Symfony 6.4+

Installation
------------

[](#installation)

Install via Composer:

```
composer require tourze/sensitive-text-detect-bundle
```

Quick Start
-----------

[](#quick-start)

### Register the Bundle in your Symfony application

[](#register-the-bundle-in-your-symfony-application)

```
// config/bundles.php
return [
    // ...
    Tourze\SensitiveTextDetectBundle\SensitiveTextDetectBundle::class => ['all' => true],
];
```

### Inject and use the service

[](#inject-and-use-the-service)

```
