safecomms/safecomms-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

safecomms/safecomms-php

最新稳定版本:v0.1.1

Composer 安装命令:

composer require safecomms/safecomms-php

包简介

Official PHP SDK for SafeComms API

README 文档

README

Official PHP client for the SafeComms API.

SafeComms is a powerful content moderation platform designed to keep your digital communities safe. It provides real-time analysis of text to detect and filter harmful content, including hate speech, harassment, and spam.

Get Started for Free: We offer a generous Free Tier for all users, with no credit card required. Sign up today and start protecting your community immediately.

Documentation

For full API documentation and integration guides, visit https://safecomms.dev/docs.

Installation

Install via Composer:

composer require safecomms/safecomms-php

Usage

<?php

require 'vendor/autoload.php';

use SafeComms\SafeCommsClient;

$client = new SafeCommsClient('your-api-key');

try {
    // Moderate text
    $result = $client->moderateText(
        content: 'Some text to check',
        language: 'en',
        replace: false,
        pii: false,
        replaceSeverity: null,
        moderationProfileId: 'prof_123'
    );

    print_r($result);

    // Get usage
    $usage = $client->getUsage();
    print_r($usage);

} catch (Exception $e) {
    echo 'Error: ' . $e->getMessage();
}

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-12