PHPackages                             aigc-compliance/php-sdk - 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. [API Development](/categories/api)
4. /
5. aigc-compliance/php-sdk

ActiveLibrary[API Development](/categories/api)

aigc-compliance/php-sdk
=======================

Official PHP SDK for AIGC Compliance API - AI content detection and watermarking with EU GDPR and China Cybersecurity Law compliance

1.0.2(7mo ago)01MITPHPPHP &gt;=7.4

Since Sep 27Pushed 7mo agoCompare

[ Source](https://github.com/aigc-compliance/php-sdk)[ Packagist](https://packagist.org/packages/aigc-compliance/php-sdk)[ Docs](https://www.aigc-compliance.com)[ RSS](/packages/aigc-compliance-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

AIGC Compliance PHP SDK
=======================

[](#aigc-compliance-php-sdk)

[![Packagist Version](https://camo.githubusercontent.com/0791a4d5dc5811d3fe4bcd804afffa2b7b5d3d84e6c7335a2ca327cb8ce5cc39/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616967632d636f6d706c69616e63652f7068702d73646b)](https://packagist.org/packages/aigc-compliance/php-sdk)[![PHP Version](https://camo.githubusercontent.com/7404ac2849f95f99ace60c4b949c4e57e3188dfc0d5df7a913378138ac571fb6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e342d626c7565)](https://www.php.net/)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![GitHub](https://camo.githubusercontent.com/e2a93a86feb43d15eda5d3fed631848dbac321ac50068335f98f4d6320c94804/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f616967632d636f6d706c69616e63652f7068702d73646b3f7374796c653d736f6369616c)](https://github.com/aigc-compliance/php-sdk)

**Official PHP SDK for AIGC Compliance API** - AI content detection and watermarking with EU GDPR and China Cybersecurity Law compliance.

> 🌟 **Professional SDK** | ⚡ **High Performance** | 🛡️ **Enterprise Ready** | 🌍 **Global Compliance**

- **Go** (`github.com/aigc-compliance/go-sdk`) - Go Modules

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

[](#quick-start)

Each SDK is 100% compliant with the official API documentation at  AIGC Compliance SDK - Complete Implementation Suite

This repository contains the **complete implementation** of all SDKs and backend services for the AIGC Compliance API, making everything promised in the official documentation **100% real and functional**.

📦 What's Included
-----------------

[](#-whats-included)

### 🛠️ Official SDKs (5 Languages)

[](#️-official-sdks-5-languages)

- **🐍 Python SDK** - Ready for PyPI
- **🟨 Node.js/TypeScript SDK** - Ready for npm
- **🐘 PHP SDK** - Ready for Packagist
- **☕ Java SDK** - Ready for Maven Central
- **🔷 Go SDK** - Ready for Go Modules

### ⚡ FastAPI Backend Implementation

[](#-fastapi-backend-implementation)

- **Complete API server** with all documented endpoints
- **Enterprise-grade features** (webhooks, analytics, batch processing)
- **Production-ready** with security, rate limiting, and CORS

### 📜 Publication Scripts

[](#-publication-scripts)

- **Automated deployment scripts** for all platforms
- **Professional CI/CD ready** workflows
- **Quality assurance** with tests and validation

---

🎯 Features Implemented
----------------------

[](#-features-implemented)

### ✅ Core API Endpoints

[](#-core-api-endpoints)

- `/comply` - Content compliance verification
- `/v1/tag` - Content tagging and categorization
- `/v1/batch` - Batch processing for multiple files
- `/v1/analytics` - Enterprise analytics and metrics
- `/v1/webhooks` - Webhook management system
- `/quota` - Quota and usage management

### ✅ All SDKs Include

[](#-all-sdks-include)

- **Complete API coverage** - All endpoints supported
- **File upload support** - Multipart form handling
- **Enterprise features** - Webhooks, analytics, batch processing
- **Robust error handling** - Comprehensive exception hierarchy
- **Type safety** - Full typing where applicable (TypeScript, Python)
- **Comprehensive tests** - Unit tests with high coverage
- **Professional documentation** - Complete usage guides

### ✅ Production Ready

[](#-production-ready)

- **Authentication** - API key based security
- **Rate limiting** - Configurable request throttling
- **CORS support** - Cross-origin resource sharing
- **File validation** - MIME type and size checking
- **Error consistency** - Standardized error responses across all SDKs
- **Logging** - Structured logging for monitoring

---

🚀 Quick Start
-------------

[](#-quick-start)

### Python SDK

[](#python-sdk)

```
cd python-sdk
pip install -e .
```

```
from aigc_compliance import ComplianceClient

client = ComplianceClient(api_key="your-api-key")
result = client.comply("path/to/content.jpg")
print(result.is_compliant)
```

### Node.js SDK

[](#nodejs-sdk)

```
cd nodejs-sdk
npm install
```

```
import { ComplianceClient } from 'aigc-compliance-sdk';

const client = new ComplianceClient('your-api-key');
const result = await client.comply('path/to/content.jpg');
console.log(result.isCompliant);
```

### PHP SDK

[](#php-sdk)

```
cd php-sdk
composer install
```

```
