PHPackages                             yohns/meta-generator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yohns/meta-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yohns/meta-generator
====================

AI-powered meta description and keyword generator supporting Gemini and Claude.

v1.0.1(3mo ago)02MITPHPPHP ^8.2

Since Mar 15Pushed 3mo agoCompare

[ Source](https://github.com/YoBuild/Meta-Generator)[ Packagist](https://packagist.org/packages/yohns/meta-generator)[ RSS](/packages/yohns-meta-generator/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Meta Generator
==============

[](#meta-generator)

AI-powered meta description and keyword generator. Paste a content blurb and get an SEO-ready meta description (120-160 characters) and a set of 5-8 keywords — powered by Google Gemini or Anthropic Claude.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Extensions: `curl`, `json`, `mbstring`
- Composer
- A Gemini or Claude API key

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

[](#installation)

```
composer install
cp config/ai.example.php config/ai.php
```

Edit `config/ai.php` and add your API key:

```
'provider' => 'gemini', // or 'claude'

'gemini' => [
    'api_key' => 'YOUR_KEY_HERE',
    'model'   => 'gemini-2.0-flash',
],

'claude' => [
    'api_key' => 'YOUR_KEY_HERE',
    'model'   => 'claude-haiku-4-5-20251001',
],
```

Then serve the project from any PHP-capable web server (Apache, Nginx, Laragon, etc.) and open `index.html`.

Usage
-----

[](#usage)

1. Open the app in your browser
2. Paste or type a content blurb (up to 2000 characters)
3. Click **Generate**
4. Copy the resulting meta description or keywords

### API Endpoint

[](#api-endpoint)

```
POST /api/generate-meta.php
Content-Type: application/json

{"blurb": "Your content blurb here..."}

```

**Response:**

```
{
    "success": true,
    "provider": "gemini",
    "data": {
        "meta_description": "...",
        "keywords": ["keyword1", "keyword2", "..."]
    }
}
```

Rate Limiting
-------------

[](#rate-limiting)

Rate limiting is enabled by default in the config (per IP):

```
'rate_limit' => [
    'enabled'      => true,
    'rpm'          => 5,   // Requests Per Minute
    'rpd'          => 20,  // Requests Per Day
    'storage_path' => __DIR__ . '/../storage/rate_limit.json',
],
```

The `storage_path` is configurable — point it to any writable location. The directory is created automatically on first request.

Adding a Provider
-----------------

[](#adding-a-provider)

1. Create a class in `src/MetaGenerator/` extending `AbstractMetaGenerator`
2. Implement the `generate(string $blurb): array` method
3. Add a case to `MetaGeneratorFactory::make()`
4. Add the provider's config block to `config/ai.example.php`

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance81

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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 ~0 days

Total

2

Last Release

101d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2002591?v=4)[JWB](/maintainers/Yohn)[@Yohn](https://github.com/Yohn)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yohns-meta-generator/health.svg)

```
[![Health](https://phpackages.com/badges/yohns-meta-generator/health.svg)](https://phpackages.com/packages/yohns-meta-generator)
```

###  Alternatives

[lstrojny/procrastinator

Do things as late as possible in a request. Don’t let your users wait

6332.6k1](/packages/lstrojny-procrastinator)[hiqdev/yii2-thememanager

Pluggable themes for Yii2

2533.8k9](/packages/hiqdev-yii2-thememanager)[arthurkushman/detox

Detox is a library to detect toxic text (comments/posts etc) of variable length with different patterns

1416.3k](/packages/arthurkushman-detox)

PHPackages © 2026

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