{"id":36274306,"url":"https://github.com/sharpapi/php-content-paraphrase-text","last_synced_at":"2026-01-13T23:03:39.499Z","repository":{"id":331818188,"uuid":"1131161193","full_name":"sharpapi/php-content-paraphrase-text","owner":"sharpapi","description":"SharpAPI PHP Client - php-content-paraphrase-text","archived":false,"fork":false,"pushed_at":"2026-01-10T14:19:22.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T13:38:19.171Z","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:25.000Z","updated_at":"2026-01-10T14:19:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sharpapi/php-content-paraphrase-text","commit_stats":null,"previous_names":["sharpapi/php-content-paraphrase-text"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sharpapi/php-content-paraphrase-text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpapi%2Fphp-content-paraphrase-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpapi%2Fphp-content-paraphrase-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpapi%2Fphp-content-paraphrase-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpapi%2Fphp-content-paraphrase-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharpapi","download_url":"https://codeload.github.com/sharpapi/php-content-paraphrase-text/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpapi%2Fphp-content-paraphrase-text/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:32.028Z","updated_at":"2026-01-13T23:03:39.493Z","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 Paraphrase Text API for PHP\n\n## 📝 Paraphrase text using AI - generates alternative versions of content\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/sharpapi/php-content-paraphrase-text.svg?style=flat-square)](https://packagist.org/packages/sharpapi/php-content-paraphrase-text)\n[![Total Downloads](https://img.shields.io/packagist/dt/sharpapi/php-content-paraphrase-text.svg?style=flat-square)](https://packagist.org/packages/sharpapi/php-content-paraphrase-text)\n\nCheck the full documentation on the [Content Paraphrase Text API for PHP API](https://sharpapi.com/en/catalog/ai/content-marketing-automation/paraphrase-text) 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/2sBXVeGsRS) |\n| **Product Details** | [SharpAPI.com](https://sharpapi.com/en/catalog/ai/content-marketing-automation/paraphrase-text) |\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-paraphrase-text\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\nParaphrase text using AI - generates alternative versions of content\n\n---\n\n## Usage\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse SharpAPI\\ContentParaphrase\\ParaphraseTextClient;\nuse GuzzleHttp\\Exception\\GuzzleException;\n\n$apiKey = 'your_api_key_here';\n$client = new ParaphraseTextClient(apiKey: $apiKey);\n\ntry {\n    $statusUrl = $client-\u003eparaphraseText(\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\": \"385fec60-e73e-458c-a6c9-6e76e5a76661\",\n        \"attributes\": {\n            \"status\": \"success\",\n            \"type\": \"content_paraphrase\",\n            \"result\": {\n                \"paraphrase\": \"Max Verstappen of Red Bull remarks that the Las Vegas Grand Prix is '99% show and 1% sport.' The triple world champion isn't thrilled about the spectacle, marking the first F1 race on the city's Strip. Other drivers, like Fernando Alonso, acknowledge the unique investment and setting. The event began with a grand ceremony featuring stars like Kylie Minogue. Bob Hamilton expressed excitement about the iconic city, noting the blend of show and sport, and praised F1's direction under Stefano Domenicali and Liberty.\"\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-paraphrase-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharpapi%2Fphp-content-paraphrase-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpapi%2Fphp-content-paraphrase-text/lists"}