RelPath
=======

RelPath is a small PHP library for computing a relative filepath to some path,
either from the current directory or from an optional start directory.

Here is how you use it:

```php

$relPath = RelPath\getRelativePath( '/srv/mediawiki/resources/src/startup.js', '/srv/mediawiki' );
// Result: string(24) "resources/src/startup.js"

$fullPath = RelPath\joinPath( '/srv/mediawiki', 'resources/src/startup.js' );
// Result: string(39) "/srv/mediawiki/resources/src/startup.js"


```

License
-------

MIT

RelPath
=======

RelPath is a small PHP library for computing a relative filepath to some path,
either from the current directory or from an optional start directory.

Here is how you use it:

<pre lang="php">
$relPath = RelPath\getRelativePath( '/srv/mediawiki/resources/src/startup.js', '/srv/mediawiki' );
// Result: string(24) "resources/src/startup.js"

$fullPath = RelPath\joinPath( '/srv/mediawiki', 'resources/src/startup.js' );
// Result: string(39) "/srv/mediawiki/resources/src/startup.js"
</pre>

License
-------

MIT

Use <pre> instead of backticks for code block
readme: Use <pre> instead of backticks for code block

This unbreaks the Doxygen build. The tripple-backticks syntax is
not universally supported. <pre lang> has much wider support
(including Packagist, GitHub, Gitblit, and Doxygen).

Change-Id: Idcaf91a0e552ed26e6149a4190e40ef08490f86e
