This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# This script will provides a reverse-search on Packagist to find which libraries uses a given library package | |
# as a dependency. | |
# | |
# Usage: | |
# First, you need to fetch dependencies: ./packagist.py --fetch | |
# After, you can start checking packages: ./packagist.py --package <package-name> | |
# | |
# Author: Vincent Composieux <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function it($m,$p){echo ($p?'✔︎':'✘')." It $m\n"; if(!$p){$GLOBALS['f']=1;}}function done(){if(@$GLOBALS['f'])die(1);} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('PACKAGE_LIST', 'list.txt'); | |
define('CODING_STANDARD', 'PSR2'); | |
define('SEVERITY', 1); | |
define('ENCODING', 'utf-8'); | |
define('REPORT', 'source'); | |
define('EXTENSIONS', 'php'); | |
$excluded = [ | |
'*/test/*', |