concrete/src/Package/PackageService.php
public function getRemotelyUpgradeablePackages()
    {
        $packages = $this->getInstalledList();
        $upgradeables = [];
        foreach ($packages as $p) {
            if (version_compare($p->getPackageVersion(), $p->getPackageVersionUpdateAvailable(), '<')) {
                $upgradeables[] = $p;
            }
        }

        return $upgradeables;
    }
public function getRemotelyUpgradeablePackages()
    {
        $packages = $this->getInstalledList();
        $upgradeables = [];
        foreach ($packages as $p) {
            if (version_compare($p->getPackageVersion(), $p->getPackageVersionUpdateAvailable(), '<')) {
                $upgradeables[] = $p;
            }
        }

        return $upgradeables;
    }
public function getRemotelyUpgradeablePackages ( ) { $ packages = $ this -> getInstalledList ( ) ; $ upgradeables = [ ] ; foreach ( $ packages as $ p ) { if ( version_compare ( $ p -> getPackageVersion ( ) , $ p -> getPackageVersionUpdateAvailable ( ) , '<' ) ) { $ upgradeables [ ] = $ p ; } } return $ upgradeables ; }
Get the controllers of the packages that have an upgraded version available in the marketplace.

@return \Concrete\Core\Package\Package[]
Get the controllers of the packages that have an upgraded version available in the marketplace .