Skip to content

Instantly share code, notes, and snippets.

@Adirelle
Created November 16, 2017 08:08
Show Gist options
  • Save Adirelle/ce6a8045c93c86b98ff2b86cc504056f to your computer and use it in GitHub Desktop.
Save Adirelle/ce6a8045c93c86b98ff2b86cc504056f to your computer and use it in GitHub Desktop.
composer-require-check lists symbol from vendors.
Script started on 2017-11-16 09:02:40+0100
user@lyp4028 /t/fail> ls -la
total 20
drwxr-xr-x 2 user adusers 4096 nov. 16 09:02 ./
drwxrwxrwt 17 root root 12288 nov. 16 08:58 ../
-rw-r--r-- 1 user adusers 314 nov. 16 09:01 composer.json
-rw-r--r-- 1 user adusers 0 nov. 16 09:02 typescript
user@lyp4028 /t/fail> cat composer.json
{
"require": {
"symfony/twig-bridge": "@stable"
},
"require-dev": {
"symfony/debug": "@stable"
},
"autoload": {
"psr-4": {
"MyNamespace\\": "./"
}
},
"autoload-dev": {
"psr-4": {
"MyNamespace\\Tests\\": "tests/"
}
}
}
user@lyp4028 /t/fail> composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
- Installing symfony/polyfill-mbstring (v1.6.0): Loading from cache
- Installing twig/twig (v2.4.4): Loading from cache
- Installing symfony/twig-bridge (v3.3.12): Loading from cache
- Installing psr/log (1.0.2): Loading from cache
- Installing symfony/debug (v3.3.12): Loading from cache
symfony/twig-bridge suggests installing symfony/asset (For using the AssetExtension)
symfony/twig-bridge suggests installing symfony/expression-language (For using the ExpressionExtension)
symfony/twig-bridge suggests installing symfony/finder ()
symfony/twig-bridge suggests installing symfony/form (For using the FormExtension)
symfony/twig-bridge suggests installing symfony/http-kernel (For using the HttpKernelExtension)
symfony/twig-bridge suggests installing symfony/routing (For using the RoutingExtension)
symfony/twig-bridge suggests installing symfony/security (For using the SecurityExtension)
symfony/twig-bridge suggests installing symfony/stopwatch (For using the StopwatchExtension)
symfony/twig-bridge suggests installing symfony/templating (For using the TwigEngine)
symfony/twig-bridge suggests installing symfony/translation (For using the TranslationExtension)
symfony/twig-bridge suggests installing symfony/var-dumper (For using the DumpExtension)
symfony/twig-bridge suggests installing symfony/web-link (For using the WebLinkExtension)
symfony/twig-bridge suggests installing symfony/yaml (For using the YamlExtension)
Writing lock file
Generating autoload files
user@lyp4028 /t/fail> composer-require-checker
ComposerRequireChecker 0.1.6-33-g9463daa
The following unknown symbols were found:
+--------------------------------------------------------------------------------------+--------------------+
| unknown symbol | guessed dependency |
+--------------------------------------------------------------------------------------+--------------------+
| class_exists | ext-Core |
| Twig_Node_SetTemp | |
| Twig_Extension_ExtensionInterface | |
| in_array | ext-standard |
| substr | ext-standard |
| pathinfo | ext-standard |
| PATHINFO_EXTENSION | ext-standard |
| class_alias | ext-Core |
| IteratorAggregate | ext-Core |
| Serializable | ext-Core |
| get_class | ext-Core |
| trigger_error | ext-Core |
| E_USER_DEPRECATED | ext-Core |
| strpos | ext-standard |
| microtime | ext-standard |
| memory_get_usage | ext-standard |
| memory_get_peak_usage | ext-standard |
| ArrayIterator | ext-SPL |
| serialize | ext-standard |
| unserialize | ext-standard |
| sprintf | ext-standard |
| floor | ext-standard |
| count | ext-standard |
| hash | ext-hash |
| uniqid | ext-standard |
| mt_rand | ext-standard |
| Exception | ext-Core |
| is_string | ext-standard |
| is_object | ext-standard |
| method_exists | ext-Core |
| json_encode | ext-json |
| debug_backtrace | ext-Core |
| DEBUG_BACKTRACE_IGNORE_ARGS | ext-Core |
| DEBUG_BACKTRACE_PROVIDE_OBJECT | ext-Core |
| ReflectionObject | ext-Reflection |
| array_pop | ext-standard |
| array_unshift | ext-standard |
| array_shift | ext-standard |
| array_merge | ext-standard |
| LogicException | ext-SPL |
| ob_start | ext-standard |
| ob_get_clean | ext-standard |
| array_keys | ext-standard |
| array_unique | ext-standard |
| is_array | ext-standard |
| ob_get_level | ext-standard |
| Throwable | ext-Core |
| ob_end_clean | ext-standard |
| array_map | ext-standard |
| strtolower | ext-standard |
| Countable | ext-SPL |
| InvalidArgumentException | ext-SPL |
| gettype | ext-standard |
| str_replace | ext-standard |
| var_export | ext-standard |
| implode | ext-standard |
| strlen | ext-Core |
| explode | ext-standard |
| str_repeat | ext-standard |
| ltrim | ext-standard |
| array_key_exists | ext-standard |
| addcslashes | ext-standard |
| is_int | ext-standard |
| is_float | ext-standard |
| setlocale | ext-standard |
| LC_NUMERIC | ext-standard |
| is_bool | ext-standard |
| substr_count | ext-standard |
| ksort | ext-standard |
| getcwd | ext-standard |
| DIRECTORY_SEPARATOR | ext-standard |
| realpath | ext-standard |
| is_dir | ext-standard |
| rtrim | ext-standard |
| file_get_contents | ext-standard |
| strncmp | ext-Core |
| filemtime | ext-standard |
| is_file | ext-standard |
| preg_replace | ext-pcre |
| strspn | ext-standard |
| ctype_alpha | ext-ctype |
| parse_url | ext-standard |
| PHP_URL_SCHEME | ext-standard |
| file_exists | ext-standard |
| dirname | ext-standard |
| mkdir | ext-standard |
| clearstatcache | ext-standard |
| RuntimeException | ext-SPL |
| is_writable | ext-standard |
| tempnam | ext-standard |
| basename | ext-standard |
| file_put_contents | ext-standard |
| rename | ext-standard |
| chmod | ext-standard |
| umask | ext-standard |
| function_exists | ext-Core |
| opcache_invalidate | ext-Zend OPcache |
| apc_compile_file | |
| strtoupper | ext-standard |
| PHP_MAJOR_VERSION | ext-Core |
| PHP_MINOR_VERSION | ext-Core |
| levenshtein | ext-standard |
| asort | ext-standard |
| Psr\Container\ContainerInterface | |
| preg_quote | ext-pcre |
| preg_match_all | ext-pcre |
| PREG_OFFSET_CAPTURE | ext-pcre |
| preg_match | ext-pcre |
| ctype_digit | ext-ctype |
| PHP_INT_MAX | ext-Core |
| strtr | ext-standard |
| stripcslashes | ext-standard |
| end | ext-standard |
| array_combine | ext-standard |
| arsort | ext-standard |
| ctype_space | ext-ctype |
| PHPUnit\Framework\TestCase | |
| RecursiveIteratorIterator | ext-SPL |
| RecursiveDirectoryIterator | ext-SPL |
| PREG_SET_ORDER | ext-pcre |
| ReflectionProperty | ext-Reflection |
| trim | ext-standard |
| printf | ext-standard |
| spl_object_hash | ext-SPL |
| array_intersect | ext-standard |
| ReflectionClass | ext-Reflection |
| array_reverse | ext-standard |
| ucfirst | ext-standard |
| array_filter | ext-standard |
| array_chunk | ext-standard |
| array_push | ext-standard |
| ReflectionMethod | ext-Reflection |
| Closure | ext-Core |
| ReflectionFunction | ext-Reflection |
| get_object_vars | ext-Core |
| chr | ext-standard |
| RegexIterator | ext-SPL |
| Traversable | ext-Core |
| set_error_handler | ext-Core |
| restore_error_handler | ext-Core |
| IteratorIterator | ext-SPL |
| UnexpectedValueException | ext-SPL |
| is_resource | ext-standard |
| call_user_func | ext-standard |
| DateTimeZone | ext-date |
| date_default_timezone_get | ext-date |
| ArrayAccess | ext-Core |
| iterator_to_array | ext-SPL |
| iconv | ext-iconv |
| preg_split | ext-pcre |
| array_rand | ext-standard |
| DateInterval | ext-date |
| DateTimeImmutable | ext-date |
| DateTimeInterface | ext-date |
| DateTime | ext-date |
| round | ext-standard |
| pow | ext-standard |
| number_format | ext-standard |
| http_build_query | ext-standard |
| PHP_QUERY_RFC3986 | ext-standard |
| rawurlencode | ext-standard |
| Iterator | ext-Core |
| LimitIterator | ext-SPL |
| OutOfBoundsException | ext-SPL |
| array_slice | ext-standard |
| current | ext-standard |
| htmlspecialchars | ext-standard |
| ENT_QUOTES | ext-standard |
| ENT_SUBSTITUTE | ext-standard |
| preg_replace_callback | ext-pcre |
| bin2hex | ext-standard |
| ord | ext-standard |
| hexdec | ext-standard |
| is_scalar | ext-standard |
| MB_CASE_TITLE | ext-mbstring |
| ucwords | ext-standard |
| constant | ext-standard |
| defined | ext-Core |
| ceil | ext-standard |
| array_fill | ext-standard |
| get_class_methods | ext-Core |
| sort | ext-standard |
| BadMethodCallException | ext-SPL |
| extension_loaded | ext-Core |
| ini_get | ext-standard |
| PHP_SAPI | ext-Core |
| var_dump | ext-standard |
| JsonSerializable | ext-json |
| usleep | ext-standard |
| stdClass | ext-Core |
| FilesystemIterator | ext-SPL |
| rmdir | ext-standard |
| unlink | ext-standard |
| time | ext-date |
| sys_get_temp_dir | ext-standard |
| touch | ext-standard |
| is_numeric | ext-standard |
| SplFileInfo | ext-SPL |
| ArrayObject | ext-SPL |
| range | ext-standard |
| mt_getrandmax | ext-standard |
| SimpleXMLElement | ext-SimpleXML |
| compact | ext-standard |
| PHPUnit_Framework_TestCase | |
| fopen | ext-standard |
| Symfony\Component\HttpKernel\DataCollector\DataCollector | |
| Symfony\Component\HttpKernel\DataCollector\LateDataCollectorInterface | |
| Symfony\Component\HttpFoundation\Request | |
| Symfony\Component\HttpFoundation\Response | |
| PHP_VERSION_ID | ext-Core |
| Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface | |
| Symfony\Component\HttpFoundation\RequestStack | |
| Symfony\Component\Console\Command\Command | |
| Symfony\Component\Console\Input\InputArgument | |
| Symfony\Component\Console\Input\InputOption | |
| Symfony\Component\Console\Input\InputInterface | |
| Symfony\Component\Console\Output\OutputInterface | |
| Symfony\Component\Console\Style\SymfonyStyle | |
| ftell | ext-standard |
| STDIN | ext-Core |
| feof | ext-standard |
| fread | ext-standard |
| Symfony\Component\Finder\Finder | |
| min | ext-standard |
| array_walk | ext-standard |
| JSON_PRETTY_PRINT | ext-json |
| JSON_UNESCAPED_SLASHES | ext-json |
| max | ext-standard |
| Symfony\Component\Form\FormRendererInterface | |
| Symfony\Component\Form\FormRendererEngineInterface | |
| Symfony\Component\Form\FormRenderer | |
| Symfony\Component\Security\Csrf\CsrfTokenManagerInterface | |
| Symfony\Component\Form\AbstractRendererEngine | |
| Symfony\Component\Form\FormView | |
| Symfony\Component\Translation\Extractor\AbstractFileExtractor | |
| Symfony\Component\Translation\Extractor\ExtractorInterface | |
| Symfony\Component\Translation\MessageCatalogue | |
| Symfony\Component\Finder\SplFileInfo | |
| Symfony\Component\Console\Application | |
| Symfony\Component\Console\Tester\CommandTester | |
| Symfony\Component\HttpFoundation\Session\Session | |
| Symfony\Component\HttpFoundation\Session\Flash\FlashBag | |
| Symfony\Component\Templating\TemplateReference | |
| Symfony\Component\Routing\RequestContext | |
| Symfony\Component\Form\Tests\AbstractBootstrap3HorizontalLayoutTest | |
| Symfony\Component\Form\Tests\AbstractBootstrap3LayoutTest | |
| Symfony\Component\Form\Tests\AbstractDivLayoutTest | |
| Symfony\Component\Form\ChoiceList\View\ChoiceView | |
| Symfony\Component\Workflow\Workflow | |
| Symfony\Component\Workflow\Transition | |
| Symfony\Component\Workflow\Definition | |
| Symfony\Component\Workflow\Registry | |
| Symfony\Component\Workflow\SupportStrategy\ClassInstanceSupportStrategy | |
| Fig\Link\Link | |
| array_values | ext-standard |
| Symfony\Component\Translation\Translator | |
| Symfony\Component\Translation\MessageSelector | |
| Symfony\Component\Translation\Loader\ArrayLoader | |
| Symfony\Component\HttpKernel\Fragment\FragmentHandler | |
| Symfony\Component\Form\Tests\AbstractTableLayoutTest | |
| Symfony\Component\HttpKernel\Debug\FileLinkFormatter | |
| Symfony\Component\Translation\TranslatorInterface | |
| Symfony\Component\VarDumper\Cloner\VarCloner | |
| Symfony\Component\VarDumper\VarDumper | |
| call_user_func_array | ext-standard |
| Symfony\Component\VarDumper\Dumper\HtmlDumper | |
| Symfony\Component\Templating\EngineInterface | |
| Symfony\Component\Templating\StreamingEngineInterface | |
| Symfony\Component\Templating\TemplateNameParserInterface | |
| Symfony\Component\VarDumper\Cloner\ClonerInterface | |
| func_num_args | ext-Core |
| func_get_args | ext-Core |
| stream_get_contents | ext-standard |
| Symfony\Component\Stopwatch\Stopwatch | |
| SplObjectStorage | ext-SPL |
| Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface | |
| Symfony\Component\Security\Acl\Voter\FieldVote | |
| Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException | |
| Symfony\Component\DependencyInjection\ContainerInterface | |
| Symfony\Component\Asset\Packages | |
| Fig\Link\GenericLinkProvider | |
| Symfony\Component\HttpKernel\Controller\ControllerReference | |
| get_cfg_var | ext-standard |
| ENT_COMPAT | ext-standard |
| strip_tags | ext-standard |
| is_readable | ext-standard |
| highlight_file | ext-standard |
| substr_replace | ext-standard |
| Symfony\Component\Security\Http\Logout\LogoutUrlGenerator | |
| strrpos | ext-standard |
| Symfony\Component\Routing\Generator\UrlGeneratorInterface | |
| Symfony\Component\ExpressionLanguage\Expression | |
| Symfony\Component\Yaml\Dumper | |
| Symfony\Component\Yaml\Yaml | |
| define | ext-Core |
| parse_str | ext-standard |
| base64_decode | ext-standard |
| base64_encode | ext-standard |
| html_entity_decode | ext-standard |
| array_walk_recursive | ext-standard |
| iconv_mime_decode | ext-iconv |
| E_USER_WARNING | ext-Core |
| MB_CASE_UPPER | ext-mbstring |
| iconv_strlen | ext-iconv |
| iconv_strpos | ext-iconv |
| iconv_strrpos | ext-iconv |
| MB_CASE_LOWER | ext-mbstring |
| strcasecmp | ext-Core |
| iconv_substr | ext-iconv |
| strrchr | ext-standard |
| unpack | ext-standard |
| htmlentities | ext-standard |
| ParseError | ext-Core |
| E_PARSE | ext-Core |
| TypeError | ext-Core |
| E_RECOVERABLE_ERROR | ext-Core |
| E_ERROR | ext-Core |
| ErrorException | ext-Core |
| xdebug_get_function_stack | |
| array_splice | ext-standard |
| symfony_debug_backtrace | |
| Symfony\Component\HttpKernel\Exception\HttpExceptionInterface | |
| Symfony\Component\HttpFoundation\Exception\RequestExceptionInterface | |
| __PHP_Incomplete_Class | ext-standard |
| get_resource_type | ext-Core |
| stripos | ext-standard |
| PHP_OS | ext-Core |
| spl_autoload_functions | ext-SPL |
| spl_autoload_unregister | ext-SPL |
| spl_autoload_register | ext-SPL |
| interface_exists | ext-Core |
| trait_exists | ext-Core |
| get_parent_class | ext-Core |
| class_implements | ext-SPL |
| chdir | ext-standard |
| scandir | ext-standard |
| substr_compare | ext-standard |
| E_DEPRECATED | ext-Core |
| E_NOTICE | ext-Core |
| E_USER_NOTICE | ext-Core |
| E_STRICT | ext-Core |
| E_WARNING | ext-Core |
| E_COMPILE_WARNING | ext-Core |
| E_CORE_WARNING | ext-Core |
| E_USER_ERROR | ext-Core |
| E_COMPILE_ERROR | ext-Core |
| E_CORE_ERROR | ext-Core |
| register_shutdown_function | ext-standard |
| set_exception_handler | ext-Core |
| E_ALL | ext-Core |
| error_reporting | ext-Core |
| func_get_arg | ext-Core |
| error_get_last | ext-standard |
| restore_exception_handler | ext-Core |
| ob_end_flush | ext-standard |
| ob_get_length | ext-standard |
| headers_sent | ext-standard |
| header | ext-standard |
| nl2br | ext-standard |
| get_defined_functions | ext-Core |
| Symfony\Component\ClassLoader\ClassLoader | |
| ini_set | ext-standard |
| Symfony\Component\HttpKernel\Exception\NotFoundHttpException | |
| Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException | |
| Symfony\Component\HttpKernel\Exception\BadRequestHttpException | |
| Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException | |
| Symfony\Component\HttpKernel\Exception\ConflictHttpException | |
| Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException | |
| Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException | |
| Symfony\Component\HttpKernel\Exception\GoneHttpException | |
| Symfony\Component\HttpKernel\Exception\LengthRequiredHttpException | |
| Symfony\Component\HttpKernel\Exception\PreconditionFailedHttpException | |
| Symfony\Component\HttpKernel\Exception\PreconditionRequiredHttpException | |
| Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException | |
| Symfony\Component\HttpKernel\Exception\TooManyRequestsHttpException | |
| Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException | |
| Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException | |
| opendir | ext-standard |
| tmpfile | ext-standard |
| INF | ext-standard |
| NAN | ext-standard |
| closedir | ext-standard |
| fclose | ext-standard |
| is_subclass_of | ext-Core |
| is_nan | ext-standard |
| testHeader | |
| Error | ext-Core |
| user_error | ext-Core |
| zend_loader_file_encoded | |
| includeFile | |
| apcu_fetch | |
| apcu_add | |
| stream_resolve_include_path | ext-standard |
+--------------------------------------------------------------------------------------+--------------------+
user@lyp4028 /t/fail [1]>
Script done on 2017-11-16 09:03:00+0100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment