PHPackages                             sharpapi/laravel-content-keywords - 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. sharpapi/laravel-content-keywords

ActiveLibrary[API Development](/categories/api)

sharpapi/laravel-content-keywords
=================================

AI Content Keywords Generator for Laravel powered by SharpAPI.com

v1.0.3(1mo ago)00MITPHPPHP ^8.1

Since Jan 9Pushed 1mo agoCompare

[ Source](https://github.com/sharpapi/laravel-content-keywords)[ Packagist](https://packagist.org/packages/sharpapi/laravel-content-keywords)[ Docs](https://github.com/sharpapi/laravel-content-keywords)[ RSS](/packages/sharpapi-laravel-content-keywords/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

AI Content Keywords Generator for Laravel
=========================================

[](#ai-content-keywords-generator-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a6eb9b61058a73cdc27e62aa6a8103732b1776727ee3ef6f680fd6ed205979e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73686172706170692f6c61726176656c2d636f6e74656e742d6b6579776f7264732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sharpapi/laravel-content-keywords)[![Total Downloads](https://camo.githubusercontent.com/e662564f3a70d8ae5231e4ae990779d9fd3f6c3435d86c6cb0ded3bcdbf88e15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73686172706170692f6c61726176656c2d636f6e74656e742d6b6579776f7264732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sharpapi/laravel-content-keywords)

This package provides a Laravel integration for the SharpAPI Content Keywords Generator. It allows you to generate keywords or tags from any text content, which is perfect for SEO optimization, content categorization, and more.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require sharpapi/laravel-content-keywords
```

Configuration
-------------

[](#configuration)

Publish the config file with:

```
php artisan vendor:publish --tag="sharpapi-content-keywords"
```

This is the contents of the published config file:

```
return [
    'api_key' => env('SHARP_API_KEY'),
    'base_url' => env('SHARP_API_BASE_URL', 'https://sharpapi.com/api/v1'),
    'api_job_status_polling_wait' => env('SHARP_API_JOB_STATUS_POLLING_WAIT', 180),
    'api_job_status_polling_interval' => env('SHARP_API_JOB_STATUS_POLLING_INTERVAL', 10),
    'api_job_status_use_polling_interval' => env('SHARP_API_JOB_STATUS_USE_POLLING_INTERVAL', false),
];
```

Make sure to set your SharpAPI key in your .env file:

```
SHARP_API_KEY=your-api-key

```

Usage
-----

[](#usage)

```
use SharpAPI\ContentKeywords\ContentKeywordsService;

$service = new ContentKeywordsService();

// Generate keywords from text
$keywords = $service->generateKeywords(
    'Your text content here',
    'English', // optional language
    10, // optional max quantity
    'professional', // optional voice tone
    'technology blog' // optional context
);

// $keywords will contain a JSON string with the generated keywords
```

Parameters
----------

[](#parameters)

- `text` (string): The text content to generate keywords from
- `language` (string|null): The language of the content (default: English)
- `maxQuantity` (int|null): Maximum number of keywords to generate
- `voiceTone` (string|null): The tone of voice for the keywords (e.g., professional, casual)
- `context` (string|null): Additional context to improve keyword relevance

Response Format
---------------

[](#response-format)

The response is a JSON string containing an array of keywords:

```
{
  "data": {
    "type": "api_job_result",
    "id": "b93aae27-87b8-4c68-925a-f6c991cc563c",
    "attributes": {
      "status": "success",
      "type": "content_keywords",
      "result": [
        "Las Vegas Grand Prix",
        "Max Verstappen",
        "Formel 1",
        "Lewis Hamilton",
        "Fernando Alonso"
      ]
    }
  }
}
```

Credits
-------

[](#credits)

- [Dawid Makowski](https://github.com/dawidmakowski)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Total

4

Last Release

52d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b500dd3d9b470b50b1ed911cd24a6fdcce51dd97dceb4f97879f727a14495a8?d=identicon)[dawid-makowski](/maintainers/dawid-makowski)

---

Top Contributors

[![makowskid](https://avatars.githubusercontent.com/u/6271194?v=4)](https://github.com/makowskid "makowskid (4 commits)")

---

Tags

phpapilaraveltagsRESTful APIkeywordsseoSharpAPIartificial intelligencenatural language processingsoftware developmentContent Analysisai apiAI-poweredapi integrationai capabilitiesContent Generation

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sharpapi-laravel-content-keywords/health.svg)

```
[![Health](https://phpackages.com/badges/sharpapi-laravel-content-keywords/health.svg)](https://phpackages.com/packages/sharpapi-laravel-content-keywords)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
