Download the PHP package sensiolabs-de/deprecation-detector without Composer

On this page you can find all versions of the php package sensiolabs-de/deprecation-detector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package deprecation-detector

SensioLabs DeprecationDetector

Tests Gitter

CAUTION: This package is abandoned and will no longer receive any updates.

The SensioLabs DeprecationDetector runs a static code analysis against your project's source code to find usages of deprecated methods, classes and interfaces. For Symfony projects, it also detects usages of deprecated services. It identifies the use of deprecated code thanks to the @deprecated annotation.

Disclaimer

Please note this tool is in a very early stage of development. Expect bugs and quirks.

Basic knowledge

The Sensiolabs DeprecationDetector is a command line command based on the Symfony Console component. It makes heavy use of the PHP-Parser library for analyzing PHP code.

The command works in three steps:

  1. Scanning your vendor libraries for defined deprecations and cache them as a ruleset
  2. Finding usages of those deprecations from your ruleset.
  3. Output with the affected code parts.

Installation

Composer

For a system-wide installation via Composer, you can run:

Make sure you have ~/.composer/vendor/bin/ in your PATH and you will be able to call the deprecation-detector command.

PHAR

You can download the PHAR file available on the releases page:

Standalone

Clone the repository

Run composer

Create phar archive with Box (optional)

Provided you created the phar archive, if you want to call the deprecation-detector globally, it needs to be placed in your PATH. For example with:

Otherwise you can call bin/deprecation-detector directly.

Usage

To use the DeprecationDetector you need to provide the source and the ruleset arguments

Output

There are different output formats available, by default the output is printed in the commandline.

Html

You can get a list of all options and arguments by running

The default output might not fit into the cli. If that is the case you can set the output to a list by setting --output=simple.

Excluding deprecated method calls

You can exclude deprecated method calls by using the filter-methods option. This option takes a comma separated list of method references to exclude.

This will exclude all deprecated calls to MyClass::method and Foo::bar.

Contribution

Currently, the SensioLabs DeprecationDetector is in a very early state. Pull requests are welcome!

Maintainers

The DeprecationDetector is a project developed by the team at SensioLabs Deutschland, maintained by @marvin_klemp.


All versions of deprecation-detector with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.9
nikic/php-parser Version ^1.3
symfony/console Version ^2.6 || ^3.0
symfony/finder Version ^2.6 || ^3.0
phpdocumentor/reflection-docblock Version ~2.0
symfony/stopwatch Version ^2.7 || ^3.0
symfony/filesystem Version ^2.7 || ^3.0
symfony/dependency-injection Version ^2.7 || ^3.0
symfony/config Version ^2.7 || ^3.0
symfony/expression-language Version ^2.7 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sensiolabs-de/deprecation-detector contains the following files

Loading the files please wait ....