public function getPackagistModuleReleases($module, $limit = 10, $unstable = true)
    {
        if (!trim($module)) {
            return [];
        }

        return $this->getComposerReleases(
            sprintf(
                'http://packagist.drupal-composer.org/packages/drupal/%s.json',
                trim($module)
            ),
            $limit,
            $unstable
        );
    }
public function getPackagistModuleReleases($module, $limit = 10, $unstable = true)
    {
        if (!trim($module)) {
            return [];
        }

        return $this->getComposerReleases(
            sprintf(
                'http://packagist.drupal-composer.org/packages/drupal/%s.json',
                trim($module)
            ),
            $limit,
            $unstable
        );
    }
public function getPackagistModuleReleases ( $ module , $ limit = 10 , $ unstable = true ) { if ( ! trim ( $ module ) ) { return [ ] ; } return $ this -> getComposerReleases ( sprintf ( 'http://packagist.drupal-composer.org/packages/drupal/%s.json' , trim ( $ module ) ) , $ limit , $ unstable ) ; }
Gets Drupal modules releases from Packagist API.

@param string $module
@param int    $limit
@param bool   $unstable

@return array
Gets Drupal modules releases from Packagist API .