2017 © Pedro Peláez
 

project phan-extensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

image

drenso/phan-extensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  • Wednesday, July 4, 2018
  • by bobvandevijver
  • Repository
  • 2 Watchers
  • 1 Stars
  • 824 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 13 Versions
  • 72 % Grown

The README.md

PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis., (*1)

Note: This project is no longer actively maintained!, (*2)

Build Status, (*3)

Plugins

We currently have the following plugins available:, (*4)

Annotation\SymfonyAnnotationPlugin

Parses all annotation that start with an uppercase letter, in order to check whether they have been imported into the file, and to remove unused warnings from vanilla Phan if they are used correctly., (*5)

The Symfony version of this plugin (currently the only one) ignores the Annotation, Target, Required and SuppressWarnings annotations by default., (*6)

DocComment\InlineVarPlugin

Scans each file in the /src directory which contains a class (if a file contains multiple classes, it will also be scanned for every time a class is defined in it). This plugin is a workaround for a limitation in php-ast, which does not expose inline comments., (*7)

DocComment\MethodPlugin

Scans each method docblock for the use of the @method, in order to set the annotated class as used., (*8)

DocComment\ThrowsPlugin

Scans each method docblock for the use of the @throws, in order to set the annotated class as used., (*9)

Note: This plugin is obsolete since Phan 0.12.3, due to this issue being closed., (*10)

Usage

You can enable a plugins by adding it to your Phan configuration:, (*11)

return [
  'plugins' => [
    'vendor/drenso/phan-extensions/Plugin/Annotation/SymfonyAnnotationPlugin.php'
  ],
];

Stubs

We currently have stubs for the following packages:, (*12)

  • curl
  • intl
  • ldap
  • pdo
  • radius
  • sockets

You can enable a stub by adding it to your Phan configuration. Note that you also want to disable analysis on the specific folder. You probably already added the vendor directory to your configuration (in both lists), in which case you can skip this setup., (*13)

return [
  'directory_list' => [
    'vendor/drenso/phan-extensions/Stubs'
  ],

  "exclude_analysis_directory_list" => [
    'vendor/drenso/phan-extensions/Stubs'
  ],
];

The Versions

04/07 2018

dev-master

9999999-dev https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

04/07 2018

v2.3.3

2.3.3.0 https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

19/05 2018

v2.3.2

2.3.2.0 https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

31/03 2018

dev-tests

dev-tests https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

31/03 2018

dev-improve-phan-integration

dev-improve-phan-integration https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

20/03 2018

v2.3.1

2.3.1.0 https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

18/03 2018

v2.3.0

2.3.0.0 https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

12/03 2018

v2.2.0

2.2.0.0 https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

12/03 2018

v2.1.2

2.1.2.0 https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

12/03 2018

v2.1.1

2.1.1.0 https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

12/03 2018

v2.0.0

2.0.0.0 https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

12/03 2018

v2.1.0

2.1.0.0 https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan

11/03 2018

v1.0.0

1.0.0.0 https://github.com/Drenso/PhanExtensions

This project contains several extensions (stubs/plugins) to be used with Phan for static PHP analysis

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

The Development Requires

by Bob van de Vijver
by Tobias Feijten

plugin stub plugins symfony stubs phan