PHPackages                             yebto/article-generator-api - 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. yebto/article-generator-api

ActiveLibrary[API Development](/categories/api)

yebto/article-generator-api
===========================

PHP SDK for the YEB Article Generator API. Generate and validate articles with AI.

00PHP

Since Mar 6Pushed 2mo agoCompare

[ Source](https://github.com/yebto/article-generator-api)[ Packagist](https://packagist.org/packages/yebto/article-generator-api)[ RSS](/packages/yebto-article-generator-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

YEB ArticleGeneratorAPI
=======================

[](#yeb-articlegeneratorapi)

PHP SDK for the YEB Article Generator API. Generate and validate articles with AI.

Works standalone (plain PHP) or with Laravel (Facade + auto-discovery).

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

[](#requirements)

- PHP 8.1+
- cURL extension
- [YEB API Key](https://yeb.to) (free tier available)

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

[](#installation)

```
composer require yebto/article-generator-api
```

Standalone Usage
----------------

[](#standalone-usage)

```
use Yebto\ArticleGeneratorAPI\ArticleGeneratorAPI;

$api = new ArticleGeneratorAPI(['key' => 'your-api-key']);
$result = $api->generate('example');
```

Laravel Usage
-------------

[](#laravel-usage)

Add your API key to `.env`:

```
YEB_KEY_ID=your-api-key

```

Use via Facade:

```
use ArticleGeneratorAPI;

$result = ArticleGeneratorAPI::generate('example');
```

Or via dependency injection:

```
use Yebto\ArticleGeneratorAPI\ArticleGeneratorAPI;

public function handle(ArticleGeneratorAPI $api)
{
    $result = $api->generate('example');
}
```

### Publish Config

[](#publish-config)

```
php artisan vendor:publish --tag=yebto-article-generator-config
```

Available Methods
-----------------

[](#available-methods)

MethodDescription`generate($topic)`Generate an article on a topic`validate($content)`Validate article contentAll methods accept an optional `$extra` array parameter for additional API options.

Error Handling
--------------

[](#error-handling)

```
use Yebto\ApiClient\Exceptions\ApiException;
use Yebto\ApiClient\Exceptions\AuthenticationException;
use Yebto\ApiClient\Exceptions\RateLimitException;

try {
    $result = $api->generate('example');
} catch (AuthenticationException $e) {
    // Missing or invalid API key (401)
} catch (RateLimitException $e) {
    // Too many requests (429)
} catch (ApiException $e) {
    echo $e->getMessage();
    echo $e->getHttpCode();
}
```

Free API Access
---------------

[](#free-api-access)

Register at [yeb.to](https://yeb.to) with Google OAuth to get a free API key.

Support
-------

[](#support)

- API Documentation:
- Email:
- Issues: [GitHub Issues](https://github.com/yebto/article-generator-api/issues)

License
-------

[](#license)

MIT - NETOX Ltd.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance58

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/57d7e2ce619fb0a25c0b8ebf53ab60f9aba259cbb926f697dc0cb6b5349dea85?d=identicon)[yebto](/maintainers/yebto)

---

Top Contributors

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

---

Tags

apilaravelphpsdkyeb

### Embed Badge

![Health badge](/badges/yebto-article-generator-api/health.svg)

```
[![Health](https://phpackages.com/badges/yebto-article-generator-api/health.svg)](https://phpackages.com/packages/yebto-article-generator-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

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