PHPackages                             foobugs-standards/php52to53 - 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. foobugs-standards/php52to53

ActivePhpcs-standard

foobugs-standards/php52to53
===========================

PHP\_CodeSniffer standard for compatibility checking of PHP 5.2 to 5.3 migrations.

1141[10 issues](https://github.com/foobugs-standards/Php52to53/issues)[1 PRs](https://github.com/foobugs-standards/Php52to53/pulls)PHP

Since Apr 13Pushed 9y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP52to53
=========

[](#php52to53)

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

Features
--------

[](#features)

- Check for removed, deprecated or changed function, methods, constants etc. including stuff from removed or changed extensions
- Scan for usage of added, changed or removed parameters
- Search for removed ini-directives
- ..

Requirements
------------

[](#requirements)

- [PHP\_CodeSniffer 1.3.6+](http://pear.php.net/PHP_CodeSniffer)

Installation
------------

[](#installation)

### Composer

[](#composer)

You cann add the standard to your vendors directory by adding the dependency to your projects `composer.json`:

```
"require": {
	"foobugs-standards": "php53to54",
}

```

After an update with `composer update`, you’re able to include the standard via the full path using the `--standard` parameter:

```
vendor/bin/phpcs --standard="`pwd`/vendor/foobugs-standards/php53to54"

```

### Download

[](#download)

For the next two options make sure you’ve PHP\_CodeSniffer installed. After that you can either put this standard into the PHP\_CodeSniffer Standards directory located in your PEAR directory: (`pear/PHP/CodeSniffer/Standards`) or place the standard somewhere else and use it as standalone standard.

#### Download

[](#download-1)

Download the [zip master](https://github.com/foobugs/PHP52to53/zipball/master) from github and extract it in the PHP\_CodeSniffer Standards directory.

#### Git-Clone-Install\*\*

[](#git-clone-install)

This script will go to your PHP\_CodeSniffer Standards directory and place a clone of PHP52to53 Standard inside of it:

```
cd `pear config-get php_dir`/PHP/CodeSniffer/Standards
git clone git://github.com/foobugs/PHP52to53.git

```

Usage
-----

[](#usage)

### Installed standard

[](#installed-standard)

If you have this standard copied or cloned into the PHPCodeSniffer Standards directory the standard should be listed when calling:

```
phpcs -i

```

If `PHP52to53` is listed there you’re ready to use this standard on any directory:

```
phpcs --standard=PHP52to53

```

### External standard

[](#external-standard)

If you did not put the Standard into PHP\_CodeSniffers Standard directory you can specify the external location of the standard. Note that the path to the standard must be a full qualified path:

```
phpcs -standard=/Users/frank/Downloads/PHP52to53/Standards/PHP52to53

```

You can find more options and arguments (f.i. ignoring files, extensions, memory limit) in the official [PHP\_CodeSniffer Manual](http://pear.php.net/manual/en/package.php.php-codesniffer.php).

Participate!
------------

[](#participate)

You can participate in this project by forking the [Repository](https://github.com/foobugs/PHP52to53) and push changes back to the project. Feel free to post issues or whishes in the [issue section](https://github.com/foobugs/PHP52to53/issues).

Credits
=======

[](#credits)

This standard is the result of a cooperation with [Zend Technologies Ltd.](http://www.zend.com)to develop a PHP\_CodeSniffer standard for the PHP 5.3 compatibility project. Thanks to Slavey Karadzhov from Zend for supporting and testing it.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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/2c0597339c399bea9497c59ad70ec933e5a6c95458122649baf2dab18038ba88?d=identicon)[goatherd](/maintainers/goatherd)

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

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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