PHPackages                             jyl/bug-free-php - 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. jyl/bug-free-php

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

jyl/bug-free-php
================

佛祖保佑，永无bug!

1.1.2(7y ago)13MITPHPPHP &gt;=7.0

Since Jan 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jyiL/bugFreePhp)[ Packagist](https://packagist.org/packages/jyl/bug-free-php)[ RSS](/packages/jyl-bug-free-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

BugFree
=======

[](#bugfree)

[![Latest Stable Version](https://camo.githubusercontent.com/8d78c4521eb2266a193c85a38809f677f178faf420d20002ad092890b549522e/68747470733a2f2f706f7365722e707567782e6f72672f6a796c2f6275672d667265652d7068702f762f737461626c65)](https://packagist.org/packages/jyl/bug-free-php)[![Total Downloads](https://camo.githubusercontent.com/f3f2cef56d7aee296cba442ee0794e33287ac5bfcb62cb5fabfcb633c4233f3d/68747470733a2f2f706f7365722e707567782e6f72672f6a796c2f6275672d667265652d7068702f646f776e6c6f616473)](https://packagist.org/packages/jyl/bug-free-php)[![License](https://camo.githubusercontent.com/1b1bf4245cdb67396326784abd4ba5451a509213a12ddeecd188de2899ac8bde/68747470733a2f2f706f7365722e707567782e6f72672f6a796c2f6275672d667265652d7068702f6c6963656e7365)](https://packagist.org/packages/jyl/bug-free-php)

佛祖保佑，永无bug！：） just for fun ! 自动在PHP代码头部加上神注释，默认支持utf8和GBK编码的php文件。

安装
--

[](#安装)

```
composer create-project jyl/bug-free-php path

```

test
----

[](#test)

```
./vendor/bin/phpunit

```

example shell
-------------

[](#example-shell)

```
chmod +x bugFree.sh
./bugFree.sh

```

example php-cli
---------------

[](#example-php-cli)

```
php bugFree path/filePath    // 单文件、目录
php bugFree path/filePath path/filePath    // 多文件、目录
php bugFree path -del    // 删除佛祖保佑

```

example
-------

[](#example)

```
use BugFree\Utils as Utils;

Utils\AddNote::setDel(false);    // 设置属性 true-佛祖保佑 false-删除佛祖保佑
Utils\AddNote::setTargetCharset('utf-8');    // 设置文本编码格式属性
Utils\AddNote::bugfree([$file]);    // $file 文件路径或目录

```

ps
--

[](#ps)

更多用法查看tests示例

TODO
----

[](#todo)

- 单文件
- 多文件
- 目录

感谢
--

[](#感谢)

本扩展包根据  修改 。

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

4

Last Release

2664d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/091f11a0bdfb28899eb734427e3544617f10f1176bec9084db9d65d207262605?d=identicon)[jyiL](/maintainers/jyiL)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jyl-bug-free-php/health.svg)

```
[![Health](https://phpackages.com/badges/jyl-bug-free-php/health.svg)](https://phpackages.com/packages/jyl-bug-free-php)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[beyondcode/helo-laravel

HELO Laravel debug helper

90360.1k](/packages/beyondcode-helo-laravel)

PHPackages © 2026

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