Skip to content

v1.0.0

Choose a tag to compare

@gowelle gowelle released this 19 Dec 03:26
· 49 commits to main since this release

Release Notes v1.0.0

🎉 Initial Release
We are excited to announce the first release of the google-moderator package for Laravel! This package provides powerful text and image moderation using Google's AI APIs.

🚀 Key Features

Content Moderation

  • Text Moderation: Analyze text using the Google Natural Language API (moderateText).
  • Image Moderation: Detect unsafe content in images using the Google Vision API (SafeSearch).
  • Gemini Integration: Optional support for the Gemini API for advanced text and image analysis.

Blocklist System

  • Flexible Storage: Support for blocklists in both database and files.
  • Pattern Matching: Block content using exact matches, wildcards, or regex.
  • Caching: High-performance term matching with built-in caching.
  • Import/Export: Artisan commands to easily manage blocklists.

🌐 Multi-Language Support

  • Built-in support for any language, with a Swahili-first approach.

�️ Configuration & DX

  • Custom Thresholds: Configure sensitivity thresholds for different content categories.
  • DTOs: Rich ModerationResult and FlaggedTerm data transfer objects for easy handling of results.
  • Events: Typesafe ContentFlagged event dispatched when unsafe content is detected.

📦 Compatibility

  • PHP: 8.2+
  • Laravel: 10.x, 11.x, 12.x

installation

composer require gowelle/google-moderator

Full Changelog: https://github.com/gowelle/google-moderator/commits/v1.0.0