PHPackages                             foobugs-standards/php54to55 - 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. [Database &amp; ORM](/categories/database)
4. /
5. foobugs-standards/php54to55

ActivePhpcs-standard[Database &amp; ORM](/categories/database)

foobugs-standards/php54to55
===========================

Php54to55 tests PHP 5.4 application for 5.5 compatibility through PHP\_CodeSniffer.

v2.0-alpha1(12y ago)211[17 issues](https://github.com/foobugs-standards/Php54to55/issues)BSD-3-ClausePHP

Since Feb 21Pushed 11y ago2 watchersCompare

[ Source](https://github.com/foobugs-standards/Php54to55)[ Packagist](https://packagist.org/packages/foobugs-standards/php54to55)[ Docs](https://github.com/foobugs-standards/Php54to55)[ RSS](/packages/foobugs-standards-php54to55/feed)WikiDiscussions master Synced 1mo ago

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

Php54to55
=========

[](#php54to55)

This is a collection of sniffs for [PHP\_CodeSniffer](http://pear.php.net/PHP_CodeSniffer)that check an PHP 5.4 application for PHP 5.5 compatibility.

**This project is currently under development**

[![Build Status](https://camo.githubusercontent.com/ffb304c5a03bf2d7b5f7a3556241d9b4512514992319d825dda82e3209e52175/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f666f6f627567732d7374616e64617264732f5068703534746f35352e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/foobugs-standards/Php54to55)

Requirements
============

[](#requirements)

Requires at least PHP 5.3.2 but will not properly test `trait` names until PHP 5.4.0 or later.

It is suggested that you test compatibility with PHP 5.5 or newer in order to use the most up-to-date PHP parser/ tokenizer.

Features
========

[](#features)

- Check for deprecated &amp; removed functions (`MySQL`, `mycrypt_*`)
- Check for `/e` modifier in regular expressions
- Check for removed Constants (`MySQL`)
- Check for `setTimeZoneID` or `datefmt_set_timezone_id` usage
- Check for definitions of global functions which are [new in PHP 5.5](http://www.php.net/manual/en/migration55.new-functions.php)
- Check for definitions of classes that have been added in PHP 5.5
- Check for definitions of constants that have been added in PHP 5.5

[Detailed feature list](FEATURES.md).

Usage
=====

[](#usage)

Add `"foobugs-standards/php54to55": "~2"` to your composer.json. For example

```
{
  "require": {
    "foobugs-standards/php54to55": "~2"
  }
}
```

```
composer install

# test full standard
vendor/bin/phpcs --standard=php54to55/ /path/to/code

# test a single sniff only
vendor/bin/phpcs --standard=php54to55 --sniffs=Php54to55.Deprecated.Functions /path/to/code

```

Versioning
==========

[](#versioning)

The major version reflects PHP\_Codesniffer version while minor version reflects the standard revision.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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

Unknown

Total

1

Last Release

4459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c0597339c399bea9497c59ad70ec933e5a6c95458122649baf2dab18038ba88?d=identicon)[goatherd](/maintainers/goatherd)

![](https://www.gravatar.com/avatar/680b6be4bd7dc29e90e6dcc8c3af152ca4cd60c6a3021fcff97fbbfb16e924be?d=identicon)[foobugs](/maintainers/foobugs)

---

Top Contributors

[![Ephigenia](https://avatars.githubusercontent.com/u/73654?v=4)](https://github.com/Ephigenia "Ephigenia (11 commits)")[![reneoelke](https://avatars.githubusercontent.com/u/835041?v=4)](https://github.com/reneoelke "reneoelke (2 commits)")

---

Tags

compatibilityphpcsmigrationPHP\_CodeSniffertoolstandardstaticanalysissniffphp5.5php54

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/foobugs-standards-php54to55/health.svg)

```
[![Health](https://phpackages.com/badges/foobugs-standards-php54to55/health.svg)](https://phpackages.com/packages/foobugs-standards-php54to55)
```

###  Alternatives

[rector/rector

Instant Upgrade and Automated Refactoring of any PHP code

10.3k123.1M6.0k](/packages/rector-rector)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[phpcompatibility/php-compatibility

A set of sniffs for PHP\_CodeSniffer that checks for PHP cross-version compatibility.

2.3k74.3M1.3k](/packages/phpcompatibility-php-compatibility)[phpmyadmin/sql-parser

A validating SQL lexer and parser with a focus on MySQL dialect.

47750.4M55](/packages/phpmyadmin-sql-parser)[doctrine/coding-standard

The Doctrine Coding Standard is a set of PHPCS rules applied to all Doctrine projects.

31914.1M736](/packages/doctrine-coding-standard)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

21830.6M582](/packages/phpcompatibility-phpcompatibility-wp)

PHPackages © 2026

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