public static function toNamespace($path) {
        $path = static::ds(static::stripExt($path));

        // Attempt to split path at source folder
        foreach (array('lib', 'src') as $folder) {
            if (mb_strpos($path, $folder . static::SEPARATOR) !== false) {
                $paths = explode($folder . static::SEPARATOR, $path);
                $path = $paths[1];
            }
        }

        return trim(str_replace('/', static::PACKAGE, $path), static::PACKAGE);
    }
public static function toNamespace($path) {
        $path = static::ds(static::stripExt($path));

        // Attempt to split path at source folder
        foreach (array('lib', 'src') as $folder) {
            if (mb_strpos($path, $folder . static::SEPARATOR) !== false) {
                $paths = explode($folder . static::SEPARATOR, $path);
                $path = $paths[1];
            }
        }

        return trim(str_replace('/', static::PACKAGE, $path), static::PACKAGE);
    }
public static function toNamespace ( $ path ) { $ path = static :: ds ( static :: stripExt ( $ path ) ) ; // Attempt to split path at source folder foreach ( array ( 'lib' , 'src' ) as $ folder ) { if ( mb_strpos ( $ path , $ folder . static :: SEPARATOR ) !== false ) { $ paths = explode ( $ folder . static :: SEPARATOR , $ path ) ; $ path = $ paths [ 1 ] ; } } return trim ( str_replace ( '/' , static :: PACKAGE , $ path ) , static :: PACKAGE ) ; }
Converts a path to a namespace package.

@param string $path
@return string
Converts a path to a namespace package .