src/Package.php
public function getPackagePath()
    {
        $type = $this->getPackageType();
        if ($type === self::TYPE_PSEUDO) {
            return false;
        }

        $root = $this->getPackageRoot();

        //the vendor name also represents the path
        $path = $this->name;

        //if it's a root package
        if ($type === self::TYPE_ROOT) {
            $path = substr($path, 1);
        }

        return $root . '/' . $path;
    }
public function getPackagePath()
    {
        $type = $this->getPackageType();
        if ($type === self::TYPE_PSEUDO) {
            return false;
        }

        $root = $this->getPackageRoot();

        //the vendor name also represents the path
        $path = $this->name;

        //if it's a root package
        if ($type === self::TYPE_ROOT) {
            $path = substr($path, 1);
        }

        return $root . '/' . $path;
    }
public function getPackagePath ( ) { $ type = $ this -> getPackageType ( ) ; if ( $ type === self :: TYPE_PSEUDO ) { return false ; } $ root = $ this -> getPackageRoot ( ) ; //the vendor name also represents the path $ path = $ this -> name ; //if it's a root package if ( $ type === self :: TYPE_ROOT ) { $ path = substr ( $ path , 1 ) ; } return $ root . '/' . $ path ; }
Returns the path of the project

@return string|false
Returns the path of the project