Skip to content

Automate with AI-powered API. Leverage AI API for workflows automation in E-Commerce, Marketing, Content Management, HR Tech, Travel, and more.

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

sharpapi/sharpapi-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SharpAPI GitHub cover

⚠️ DEPRECATED: SharpAPI PHP Client SDK

πŸ”΄ This Package is No Longer Maintained

This monolithic package (sharpapi/sharpapi-php-client) has been deprecated and replaced with specialized, endpoint-specific packages.

Why the Change?

  • 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

βœ… What Should You Use Instead?

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.


πŸ“¦ New Specialized Packages

πŸ“ Content & Marketing Automation

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

πŸ›’ E-commerce

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

πŸ§‘β€πŸ’» HR Tech

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

✈️ Travel, Tourism & Hospitality

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

πŸ” SEO

Package Description Installation
php-seo-tags-generator Generate SEO and social media META tags composer require sharpapi/php-seo-tags-generator

πŸ› οΈ Utilities

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

πŸ”„ Migration Guide

Before (Old Package)

use SharpAPI\SharpApiService\SharpApiService;

$sharpApi = new SharpApiService(SHARP_API_KEY);
$statusUrl = $sharpApi->summarizeText($text, 'English');
$result = $sharpApi->fetchResults($statusUrl);

After (New Specialized Package)

use SharpAPI\ContentSummarize\SummarizeTextClient;

$client = new SummarizeTextClient(apiKey: SHARP_API_KEY);
$statusUrl = $client->summarizeText(
    content: $text,
    language: 'English'
);
$result = $client->fetchResults($statusUrl);

Key Differences

  1. Focused Imports: Import only the client you need
  2. Named Parameters: Use modern PHP 8.0+ named arguments
  3. Better Type Safety: Improved type hints and validation
  4. Smaller Footprint: Only install dependencies for features you use

⚠️ Important Notes

For Existing Users

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

When to Migrate

  • 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

πŸ“š Resources


πŸ’¬ Need Help?

  • 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

πŸ“œ Old Documentation (For Reference Only)

Click to expand old documentation (for existing users)

Installation

composer require sharpapi/sharpapi-php-client

Requirements

  • PHP >= 8.1

Basic Usage

$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.


License

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.

SharpAPI