This monolithic package (sharpapi/sharpapi-php-client) has been deprecated and replaced with specialized, endpoint-specific packages.
- Better Performance: Install only what you need
- Smaller Dependencies: Reduced package size
- Easier Maintenance: Each endpoint has its own repository
- Clearer Documentation: Focused docs for each feature
- Faster Updates: Independent versioning per endpoint
Please migrate to the new specialized packages listed below. Each package is focused on a specific SharpAPI endpoint and provides a cleaner, more maintainable solution.
| Package | Description | Installation |
|---|---|---|
| php-content-summarize-text | AI-powered text summarization | composer require sharpapi/php-content-summarize-text |
| php-content-text-translator | Advanced text translator (80+ languages) | composer require sharpapi/php-content-text-translator |
| php-content-paraphrase-text | Paraphrase and rephrase content | composer require sharpapi/php-content-paraphrase-text |
| php-content-proofread-grammar | Proofread text and check grammar | composer require sharpapi/php-content-proofread-grammar |
| php-content-keywords-tags | Generate keywords and tags from content | composer require sharpapi/php-content-keywords-tags |
| php-content-spam-detector | Detect spam content with confidence score | composer require sharpapi/php-content-spam-detector |
| php-content-phone-detector | Extract and format phone numbers | composer require sharpapi/php-content-phone-detector |
| php-content-url-detector | Extract and validate URLs from text | composer require sharpapi/php-content-url-detector |
| php-content-email-detector | Extract and validate email addresses | composer require sharpapi/php-content-email-detector |
| Package | Description | Installation |
|---|---|---|
| php-ecommerce-product-review-sentiment | Analyze product review sentiment | composer require sharpapi/php-ecommerce-product-review-sentiment |
| php-ecommerce-product-categorization | Categorize products with AI | composer require sharpapi/php-ecommerce-product-categorization |
| php-ecommerce-product-intro-generator | Generate product introductions | composer require sharpapi/php-ecommerce-product-intro-generator |
| php-ecommerce-thank-you-email | Generate personalized thank you emails | composer require sharpapi/php-ecommerce-thank-you-email |
| Package | Description | Installation |
|---|---|---|
| php-hr-related-skills | Find related skills with relevance scores | composer require sharpapi/php-hr-related-skills |
| php-hr-related-job-positions | Find similar job positions | composer require sharpapi/php-hr-related-job-positions |
| php-hr-job-description-generator | Generate professional job descriptions | composer require sharpapi/php-hr-job-description-generator |
| Package | Description | Installation |
|---|---|---|
| php-travel-review-sentiment | Analyze travel review sentiment | composer require sharpapi/php-travel-review-sentiment |
| php-travel-hospitality-categorization | Categorize hospitality products | composer require sharpapi/php-travel-hospitality-categorization |
| php-travel-tours-activities-categorization | Categorize tours and activities | composer require sharpapi/php-travel-tours-activities-categorization |
| Package | Description | Installation |
|---|---|---|
| php-seo-tags-generator | Generate SEO and social media META tags | composer require sharpapi/php-seo-tags-generator |
| Package | Description | Installation |
|---|---|---|
| php-utility-airports | Global airports database (30,000+ airports) | composer require sharpapi/php-utility-airports |
| php-utility-job-positions | Job positions database API | composer require sharpapi/php-utility-job-positions |
use SharpAPI\SharpApiService\SharpApiService;
$sharpApi = new SharpApiService(SHARP_API_KEY);
$statusUrl = $sharpApi->summarizeText($text, 'English');
$result = $sharpApi->fetchResults($statusUrl);use SharpAPI\ContentSummarize\SummarizeTextClient;
$client = new SummarizeTextClient(apiKey: SHARP_API_KEY);
$statusUrl = $client->summarizeText(
content: $text,
language: 'English'
);
$result = $client->fetchResults($statusUrl);- Focused Imports: Import only the client you need
- Named Parameters: Use modern PHP 8.0+ named arguments
- Better Type Safety: Improved type hints and validation
- Smaller Footprint: Only install dependencies for features you use
This package will continue to work for projects that already use it. The source code remains unchanged, so your existing implementations won't break.
However, we strongly recommend migrating to the new specialized packages because:
- β This package will not receive any new features
- β Bug fixes and security updates will be limited
- β New SharpAPI endpoints will only be available in specialized packages
- β Better performance and smaller dependency footprint
- β Active development and support
- New Projects: Always use the new specialized packages
- Existing Projects: Migrate during your next major update
- composer update: You'll see deprecation warnings, but your code will still work
- SharpAPI Website: https://sharpapi.com
- API Documentation: https://sharpapi.com/documentation
- GitHub Organization: https://github.com/sharpapi
- All Packages on Packagist: https://packagist.org/packages/sharpapi/
- Questions? Open an issue on the specific package's GitHub repository
- Feature Requests? Submit them to the relevant specialized package
- General Support? Visit https://sharpapi.com/documentation
Click to expand old documentation (for existing users)
composer require sharpapi/sharpapi-php-client- PHP >= 8.1
$sharpApi = new \SharpAPI\SharpApiService\SharpApiService(SHARP_API_KEY);
$statusUrl = $sharpApi->summarizeText($text, 'English');
$result = $sharpApi->fetchResults($statusUrl);
var_dump($result->getResultJson());For complete documentation, please refer to the specialized packages listed above.
The MIT License (MIT). Please see License File for more information.
Thank you for using SharpAPI! Please migrate to our new specialized packages for the best experience.
