PHPackages                             yaknet/medikit - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. yaknet/medikit

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

yaknet/medikit
==============

A self-healing runtime for PHP that uses AI to diagnose and suggest fixes for errors.

v1.1.1(1w ago)04—0%MITPHPPHP &gt;=8.1

Since May 13Pushed 1w agoCompare

[ Source](https://github.com/y-packages/yaknet-medikit)[ Packagist](https://packagist.org/packages/yaknet/medikit)[ RSS](/packages/yaknet-medikit/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

YakNet \\ Medikit
=================

[](#yaknet--medikit)

[![PHP Version](https://camo.githubusercontent.com/4453c2f41befe802c9e573c2923911bbb3d82c558d661d4148d6381488f0d573/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d3838393262662e7376673f7374796c653d666c61742d737175617265)](https://php.net)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

**YakNet Medikit** is a revolutionary "Self-Healing" runtime library for PHP. It intercepts runtime exceptions, analyzes the failing code using Google Gemini AI, and provides instant diagnostics and fix suggestions through a premium UI or CLI report.

🚑 Why Medikit?
--------------

[](#-why-medikit)

Traditional logging tells you *what* happened. Medikit tells you *why* it happened and *how* to fix it. It acts as a "resident doctor" for your application, providing immunity against unhandled crashes.

🚀 Features
----------

[](#-features)

- **AI-Powered Diagnostics**: Uses Gemini 3.1 Flash Lite to understand code logic and intent.
- **Context Awareness**: Automatically extracts relevant code snippets surrounding the error for deep analysis.
- **Premium Reporting**: Beautiful, dark-themed HTML diagnostic pages for web errors and colorized CLI output.
- **Zero-Config Integration**: One-line registration to protect your entire application.

📦 Installation
--------------

[](#-installation)

```
composer require yaknet/medikit
```

🛠 Usage
-------

[](#-usage)

Simply register Medikit at the entry point of your application.

```
use YakNet\Medikit\Medikit;

// This will only activate if .env has MEDIKIT_DEBUG=true
Medikit::register();
```

### ⚙️ Environment Variables (.env)

[](#️-environment-variables-env)

Medikit respects your development workflow. Create a `.env` file in your root:

```
GEMINI_API_KEY=your_key_here
MEDIKIT_DEBUG=true
```

- **MEDIKIT\_DEBUG**: Must be `true` for Medikit to intercept errors. In production (false), it stays silent.
- **Interactive Mode**: In CLI, Medikit will ask if you want to attempt a repair when a fix is found.

📄 License
---------

[](#-license)

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

---

Developed with ❤️ by [YakNet](https://yak.net.tr)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance98

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Total

3

Last Release

9d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

aiGeminidiagnosticsresilienceyaknetself-healing

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yaknet-medikit/health.svg)

```
[![Health](https://phpackages.com/badges/yaknet-medikit/health.svg)](https://phpackages.com/packages/yaknet-medikit)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.9k496.1k32](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3751.2M45](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

232.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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