Converter

Convert paths relative from 1 file to another. E.g. ../../images/icon.jpg relative to /css/imports/icons.css becomes ../images/icon.jpg relative to /css/minified.css Please report bugs on https://github.com/matthiasmullie/path-converter/issues
Methods Summary
public
# __construct( string $from , string $to )
protected
# normalize( string $path )
Normalize path.
protected
# shared( string $path1 , string $path2 )
Figure out the shared path of 2 locations. Example: /home/forkcms/frontend/core/layout/images/img.gif and /home/forkcms/frontend/cache/minified_css share /home/forkcms/frontend
public
# convert( string $path )
Convert paths relative from 1 file to another. E.g. ../images/img.gif relative to /home/forkcms/frontend/core/layout/css should become: ../../core/layout/images/img.gif relative to /home/forkcms/frontend/cache/minified_css
public
# dirname( string $path )
Attempt to get the directory name from a path.
Properties Summary
protected string $from



# NULL
protected string $to



# NULL