{"id":36274392,"url":"https://github.com/sharpapi/php-content-spam-detector","last_synced_at":"2026-01-13T23:25:22.667Z","repository":{"id":331818195,"uuid":"1131161277","full_name":"sharpapi/php-content-spam-detector","owner":"sharpapi","description":"SharpAPI PHP Client - php-content-spam-detector","archived":false,"fork":false,"pushed_at":"2026-01-10T14:19:26.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T13:38:20.789Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharpapi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-09T15:11:32.000Z","updated_at":"2026-01-10T14:19:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sharpapi/php-content-spam-detector","commit_stats":null,"previous_names":["sharpapi/php-content-spam-detector"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sharpapi/php-content-spam-detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpapi%2Fphp-content-spam-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpapi%2Fphp-content-spam-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpapi%2Fphp-content-spam-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpapi%2Fphp-content-spam-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharpapi","download_url":"https://codeload.github.com/sharpapi/php-content-spam-detector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpapi%2Fphp-content-spam-detector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-11T08:54:39.176Z","updated_at":"2026-01-13T23:25:22.662Z","avatar_url":"https://github.com/sharpapi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![SharpAPI GitHub cover](https://sharpapi.com/sharpapi-github-laravel-bg.jpg \"SharpAPI PHP Client\")\n\n# Content Spam Detector API for PHP\n\n## 📝 Detect spam content using AI - identifies spam with confidence score\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/sharpapi/php-content-spam-detector.svg?style=flat-square)](https://packagist.org/packages/sharpapi/php-content-spam-detector)\n[![Total Downloads](https://img.shields.io/packagist/dt/sharpapi/php-content-spam-detector.svg?style=flat-square)](https://packagist.org/packages/sharpapi/php-content-spam-detector)\n\nCheck the full documentation on the [Content Spam Detector API for PHP API](https://sharpapi.com/en/catalog/ai/content-marketing-automation/spam-detector) page.\n\n---\n\n## Quick Links\n\n| Resource | Link |\n|----------|------|\n| **Main API Documentation** | [Authorization, Webhooks, Polling \u0026 More](https://documenter.getpostman.com/view/31106842/2s9Ye8faUp) |\n| **Postman Documentation** | [View Docs](https://documenter.getpostman.com/view/31106842/2sBXVeGsVk) |\n| **Product Details** | [SharpAPI.com](https://sharpapi.com/en/catalog/ai/content-marketing-automation/spam-detector) |\n| **SDK Libraries** | [GitHub - SharpAPI SDKs](https://github.com/sharpapi) |\n\n---\n\n## Requirements\n\n- PHP \u003e= 8.0\n\n---\n\n## Installation\n\n### Step 1. Install the package via Composer:\n\n```bash\ncomposer require sharpapi/php-content-spam-detector\n```\n\n### Step 2. Visit [SharpAPI](https://sharpapi.com/) to get your API key.\n\n---\n## Laravel Integration\n\nBuilding a Laravel application? Check the Laravel package version for better integration.\n\n---\n\n## What it does\n\nDetect spam content using AI - identifies spam with confidence score\n\n---\n\n## Usage\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse SharpAPI\\ContentSpam\\SpamDetectorClient;\nuse GuzzleHttp\\Exception\\GuzzleException;\n\n$apiKey = 'your_api_key_here';\n$client = new SpamDetectorClient(apiKey: $apiKey);\n\ntry {\n    $statusUrl = $client-\u003edetectSpam(\n        content: 'Your text content here',\n        language: 'English'\n    );\n\n    // Optional: Configure polling\n    $client-\u003esetApiJobStatusPollingInterval(10);\n    $client-\u003esetApiJobStatusPollingWait(180);\n\n    // Fetch results (polls automatically)\n    $result = $client-\u003efetchResults($statusUrl);\n    $resultData = $result-\u003egetResultJson();\n\n    echo $resultData;\n} catch (GuzzleException $e) {\n    echo \"API error: \" . $e-\u003egetMessage();\n}\n```\n\n---\n\n## Example Response\n```json\n\n{\n    \"data\": {\n        \"type\": \"api_job_result\",\n        \"id\": \"f7d3eec2-7ba6-4104-9f30-ff418428de2c\",\n        \"attributes\": {\n            \"status\": \"success\",\n            \"type\": \"content_detect_spam\",\n            \"result\": {\n                \"pass\": false,\n                \"score\": 85,\n                \"reason\": \"The message appears to be a solicitation for financial services, which is a common characteristic of spam.\"\n            }\n        }\n    }\n}\n\n```\n---\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n---\n\n## Credits\n\n- [A2Z WEB LTD](https://github.com/a2zwebltd)\n- [Dawid Makowski](https://github.com/makowskid)\n- Boost your [PHP AI](https://sharpapi.com/) capabilities!\n\n---\n\n## License\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE.md)\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n---\n\n## Social Media\n\n🚀 For the latest news, tutorials, and case studies, don't forget to follow us on:\n- [SharpAPI X (formerly Twitter)](https://x.com/SharpAPI)\n- [SharpAPI YouTube](https://www.youtube.com/@SharpAPI)\n- [SharpAPI Vimeo](https://vimeo.com/SharpAPI)\n- [SharpAPI LinkedIn](https://www.linkedin.com/products/a2z-web-ltd-sharpapicom-automate-with-aipowered-api/)\n- [SharpAPI Facebook](https://www.facebook.com/profile.php?id=61554115896974)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpapi%2Fphp-content-spam-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharpapi%2Fphp-content-spam-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpapi%2Fphp-content-spam-detector/lists"}