PHPackages                             enasellithy/smart-ai-docs - 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. enasellithy/smart-ai-docs

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

enasellithy/smart-ai-docs
=========================

Advanced AI tool for Laravel (8-11) to generate Docs and Unit Tests using Ollama, Gemini, and Groq.

00[2 issues](https://github.com/enasellithy/SmartAIDocs/issues)PHPCI failing

Since Mar 27Pushed 2mo agoCompare

[ Source](https://github.com/enasellithy/SmartAIDocs)[ Packagist](https://packagist.org/packages/enasellithy/smart-ai-docs)[ RSS](/packages/enasellithy-smart-ai-docs/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

🚀 Smart AIDocs for Laravel
==========================

[](#-smart-aidocs-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/cb7cefaf0261e577dc92f14cbefc56d95d1b1f654d3d7bea821cf7f814137213/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f656e6173656c6c697468792f536d6172744149446f6373)](https://github.com/enasellithy/SmartAIDocs)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)

**Smart AIDocs** is an intelligent Laravel package that automates the creation of Markdown documentation and PHPUnit tests for your code using AI (Kimi &amp; Groq). Perfect for developers who want to maintain high-quality docs and testing suites without the manual overhead.

---

✨ Features
----------

[](#-features)

- **AI Documentation:** Generates clear, structured Markdown files for your classes.
- **Smart Unit Testing:** Auto-generates PHPUnit tests using modern Laravel syntax.
- **Dual Provider Support:** Seamlessly switch between **Kimi AI** and **Groq Cloud**.
- **Automatic Fallback:** Intelligent error handling if an AI provider is unavailable.

---

🛠 Installation
--------------

[](#-installation)

### 1. Add Repository

[](#1-add-repository)

Since the package is currently in development, add the GitHub repository to your project's `composer.json`:

```
composer config repositories.smart_ai_docs vcs https://github.com/enasellithy/SmartAIDocs
composer require enasellithy/smart-ai-docs:dev-master --no-audit

```

### 2. KIMI\_API\_KEY=your\_kimi\_api\_key\_here

[](#2-kimi_api_keyyour_kimi_api_key_here)

KIMI\_API\_KEY=your\_kimi\_api\_key\_here GROQ\_API\_KEY=your\_groq\_api\_key\_here

### 3. Publish Configuration

[](#3-publish-configuration)

```
php artisan vendor:publish --provider="SmartAIDocs\SmartAIDocsServiceProvider"
```

### Emample

[](#emample)

Generate Documentation only

```
php artisan ai:generate app/Models/User.php --docs
php artisan ai:generate app/Http/Controllers/UserController.php --test
php artisan ai:generate app/Services/PaymentService.php --docs --test
php artisan ai:generate app/Http/Controllers --docs --test
```

### Ollama Support (Local AI)

[](#ollama-support-local-ai)

```
ollama pull deepseek-coder:6.7b
ollama pull qwen2.5-coder:1.5b
```

```
composer require enasellithy/smart-ai-docs:v1.1.0

or

composer require enasellithy/smart-ai-docs:^2.0 --no-audit
```

### Configuration

[](#configuration)

#### in env

[](#in-env)

OLLAMA\_BASE\_URL=SMART\_AI\_PROVIDER=ollama OLLAMA\_DOC\_MODEL=deepseek-coder:6.7b OLLAMA\_TEST\_MODEL=qwen2.5-coder:1.5b SMART\_AI\_DOCS\_PATH=docs

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance56

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 61.1% 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/912e1f6b4da036aeb49bf9d4799f1a6ffe29398c7bd0386818184f2b5556e58c?d=identicon)[enasellithy](/maintainers/enasellithy)

---

Top Contributors

[![inasellithy](https://avatars.githubusercontent.com/u/269779889?v=4)](https://github.com/inasellithy "inasellithy (11 commits)")[![enasellithy](https://avatars.githubusercontent.com/u/17440978?v=4)](https://github.com/enasellithy "enasellithy (7 commits)")

### Embed Badge

![Health badge](/badges/enasellithy-smart-ai-docs/health.svg)

```
[![Health](https://phpackages.com/badges/enasellithy-smart-ai-docs/health.svg)](https://phpackages.com/packages/enasellithy-smart-ai-docs)
```

###  Alternatives

[cbschuld/browser.php

A PHP Class to detect a user's Browser. This encapsulation provides a breakdown of the browser and the version of the browser using the browser's user-agent string. This is not a guaranteed solution but provides an overall accurate way to detect what browser a user is using.

5797.0M25](/packages/cbschuld-browserphp)[tochka-developers/work-calendar

Russian Federation production calendar extension for Carbon

1925.9k](/packages/tochka-developers-work-calendar)[v17development/flarum-user-badges

Adds user badges to your Flarum community

1823.0k3](/packages/v17development-flarum-user-badges)

PHPackages © 2026

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