PHPackages                             yanxishe/php-old-style - 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. yanxishe/php-old-style

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

yanxishe/php-old-style
======================

A compatibility layer of old php functions for running in new php versions,for example use mysql\_\* function in PHP5.5 or later. Chinese ：php-old-style是一个PHP旧版本函数的兼容层，可以在新的PHP版本中兼容一些被废弃的函数（将旧函数名称用新函数来实现）。比如可以在PHP5.5之后的版本，继续使用mysql\_\*系列函数。

00

Since May 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yanxishe/php-old-style)[ Packagist](https://packagist.org/packages/yanxishe/php-old-style)[ RSS](/packages/yanxishe-php-old-style/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP-Old-Style
=============

[](#php-old-style)

PHP-Old-Style是一个PHP旧版本函数的兼容层，可以在新的PHP版本中兼容一些被废弃的函数（将旧函数名称用新函数来实现）。比如可以在PHP5.5之后的版本，继续使用mysql\_\*系列函数。

这样的好处就是可以在尽量不修改或者少修改旧版本代码的情况下，运行在PHP新版本上，并且还采用新版本的新特性。

PHP-Old-Style is a compatibility layer of old php functions for running in new php versions,for example use mysql\_\* function in PHP5.5 or later.

交流社区
----

[](#交流社区)

QQ群：204787773

举例说明
----

[](#举例说明)

比如在 PHP5.5 环境中，运行 mysql\_connet 会报错， ( 因为mysql系列函数被废弃），截图如下：

采用 php-old-style 之后，就会兼容 mysql\_connet等函数，并且使用官方推荐最新的 mysqli来实现转换。这样的好处就是可以在不修改旧版本代码（mysql系列函数）的情况下，运行在PHP新版本上，并且还采用新版本的新特性（mysqli新版本）。

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/248c299b4d085f6bf3e25ec4dfd70e46e59b3c344da33520aa2b1e7a81cae74e?d=identicon)[JiaFeiX](/maintainers/JiaFeiX)

---

Tags

combinephp

### Embed Badge

![Health badge](/badges/yanxishe-php-old-style/health.svg)

```
[![Health](https://phpackages.com/badges/yanxishe-php-old-style/health.svg)](https://phpackages.com/packages/yanxishe-php-old-style)
```

PHPackages © 2026

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