{"action":"opened","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4658","labels_url":"https://api.github.com/repos/composer/composer/issues/4658/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4658/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4658/events","html_url":"https://github.com/composer/composer/issues/4658","id":119765806,"number":4658,"title":"Command to show/check required PHP version and exts","user":{"login":"mishak87","id":276500,"avatar_url":"https://avatars.githubusercontent.com/u/276500?v=3","gravatar_id":"","url":"https://api.github.com/users/mishak87","html_url":"https://github.com/mishak87","followers_url":"https://api.github.com/users/mishak87/followers","following_url":"https://api.github.com/users/mishak87/following{/other_user}","gists_url":"https://api.github.com/users/mishak87/gists{/gist_id}","starred_url":"https://api.github.com/users/mishak87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishak87/subscriptions","organizations_url":"https://api.github.com/users/mishak87/orgs","repos_url":"https://api.github.com/users/mishak87/repos","events_url":"https://api.github.com/users/mishak87/events{/privacy}","received_events_url":"https://api.github.com/users/mishak87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-01T17:19:25Z","updated_at":"2015-12-01T17:19:25Z","closed_at":null,"body":"```sh\r\ncomposer show -i -t | grep -o \"\\-\\-\\(ext-\\|php\\).\\+\" | sort | uniq | cut -d- -f3\r\n```\r\nThat command gives me list of all required versions of all extensions and php like this:\r\n```\r\next-curl *\r\next-iconv *\r\next-pdo *\r\next-tokenizer *\r\nphp >= 5.3.0\r\n...\r\nphp >=5.3,<8.0-DEV\r\n...\r\nphp >=5.6\r\n```\r\nIt still needs bit of parsing and sorting to get all information for building matching environment.\r\n\r\n1. Command to check if all ext/php version requirements are satisfied.  \r\nIt would help if composer could check if all extensions and php are matching (non destructive way). So far this is done only on install or update (destructive operations) and only if some dependency has changed or is missing.\r\n2. Command to list all ext/php version requirements.  \r\nProvide list of final version restrictions per ext/php."}}