protected function getPackageName($package)
    {
        if (strpos($package, '/') === false) {
            return $package;
        }

        list($vendor, $namespace) = explode('/', $package);

        return $namespace;
    }
protected function getPackageName($package)
    {
        if (strpos($package, '/') === false) {
            return $package;
        }

        list($vendor, $namespace) = explode('/', $package);

        return $namespace;
    }
protected function getPackageName ( $ package ) { if ( strpos ( $ package , '/' ) === false ) { return $ package ; } list ( $ vendor , $ namespace ) = explode ( '/' , $ package ) ; return $ namespace ; }
Get the name for a Package.

@param  string  $package
@param  string  $namespace
@return string
Get the name for a Package .