2017 © Pedro Peláez
 

library php54to55

Php54to55 tests PHP 5.4 applications for PHP 5.5 compatibility.

image

foobugs-standards/php54to55

Php54to55 tests PHP 5.4 applications for PHP 5.5 compatibility.

  • Monday, September 1, 2014
  • by goatherd
  • Repository
  • 2 Watchers
  • 2 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 17 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Php54to55

This is a collection of sniffs for PHP_CodeSniffer that check an PHP 5.4 application for PHP 5.5 compatibility., (*1)

This project is currently under development, (*2)

Build Status, (*3)

Requirements

Requires at least PHP 5.3.2 but will not properly test trait names until PHP 5.4.0 or later., (*4)

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., (*5)

Features

  • Check for deprecated & 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
  • 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., (*6)

Usage

Add "foobugs-standards/php54to55": "~2" to your composer.json. For example, (*7)

{
  "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

The major version reflects PHP_Codesniffer version while minor version reflects the standard revision., (*8)

The Versions

01/09 2014

dev-feature/refactoring

dev-feature/refactoring https://github.com/foobugs-standards/Php54to55

Php54to55 tests PHP 5.4 applications for PHP 5.5 compatibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rene Oelke

phpcs migration static analysis php_codesniffer tool compatibility php5.5 php5.4

25/07 2014

dev-master

9999999-dev https://github.com/foobugs-standards/Php54to55

Php54to55 tests PHP 5.4 application for 5.5 compatibility through PHP_CodeSniffer.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

phpcs migration static analysis standard php_codesniffer tool compatibility php5.5 sniff php5.4

22/02 2014

v2.0-alpha1

2.0.0.0-alpha1 https://github.com/foobugs-standards/Php54to55

Php54to55 tests PHP 5.4 application for 5.5 compatibility through PHP_CodeSniffer.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

phpcs migration static analysis standard php_codesniffer tool compatibility php5.5 sniff php5.4