I am listing all modules used by site on our platform. Given a module name, how could I programmatically check if a Drupal 8 version is available?

5 Answers 5


The easiest way would be to consume the update feed, e.g.:


Gives you

<error>No release history available for module_filter 8.x.</error>



gives you

<project xmlns:dc="http://purl.org/dc/elements/1.1/">
<name>Maintenance status</name>
<value>Seeking co-maintainer(s)</value>
<name>Development status</name>
<value>Under active development</value>
<name>views 8.x-3.x-dev</name>
  • This is the theoretically correct answer, the real answer is @Jonathan 's.
    – user49
    Commented Dec 9, 2015 at 0:53

For non programmatical way.

Download and install the Upgrade Status Module


nothing to be particularly proud about but in case it can help somebody out :

 foreach ($list_modules as $name => $modules){   

$xml = simplexml_load_file($feed_url);

 $d8='no D8 version';   
foreach($xml->children() as $child)
    $childname= $child->getName();

    if($childname == "releases")
        foreach ($child->release as $release){
            $d8.=$release->version.' - ';
        $output.='<a href='.$feed_url.'><div class="versiond8">'.$d8.'</div></a>';      

if ($d8=='no D8 version')
    $output.='<div class="versiond8">'.$d8.'</div>';

$output.='<a href='.$module_url.'><div class="drupal_site">module doc</div></a>';


While you can programatically check whether a D8 version is nominally available, the reality is much more complex. Sometimes they are available but not working, sometimes they are deprecated in favour of a new module, sometimes in core, other times there is a fully working but unofficial version that a programtic approach would not find.

I see no worthwhile alternative to looking closely at each module.


Simply to track for your own purposes so you can monitor the general state of your site, see http://d8upgrade.org/

I started using their service a while back when you had to send them a list of modules. They now claim to have a way to scan your site and build the list automatically. They also maintain a module database for modules with over 300(?) users.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.