PHPackages                             seosazi/path-converter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. seosazi/path-converter

ActiveLibrary

seosazi/path-converter
======================

convert relative path to absolute path

v1.0.14(5y ago)06MITPHPPHP ^7.3

Since Sep 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/seosazi/path-converter)[ Packagist](https://packagist.org/packages/seosazi/path-converter)[ Docs](https://github.com/seosazi/path-converter)[ RSS](/packages/seosazi-path-converter/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (18)Used By (0)

path-converter
==============

[](#path-converter)

[![Build Status](https://camo.githubusercontent.com/cdf9e2aec5e59e59337a73f4177412dd68574642c386d47e37ea5353ddafc28a/68747470733a2f2f7472617669732d63692e636f6d2f73656f73617a692f706174682d636f6e7665727465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/seosazi/path-converter)[![Code coverage](https://camo.githubusercontent.com/0e1583e7847da7a9c554f7fbff17f1b94f6fba5cd1694268f37713fa7730418b/687474703a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f73656f73617a692f706174682d636f6e7665727465722e737667)](https://codecov.io/github/seosazi/path-converter)[![Code quality](https://camo.githubusercontent.com/0c1d5e624fc8d40ff9e500b74d46e5e87a92db2081bee07009c55edd6708801f/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73656f73617a692f706174682d636f6e7665727465722e737667)](https://scrutinizer-ci.com/g/seosazi/path-converter)[![Latest version](https://camo.githubusercontent.com/3756301111a6df371e9a94f127c70b06cfd93b0fad7017ff62003fb0b36c981a/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656f73617a692f706174682d636f6e7665727465722e737667)](https://packagist.org/packages/seosazi/path-converter)[![License](https://camo.githubusercontent.com/4351f26ed8fb31bda072308371834bb8f10af394d7c1039ce6d27beb6f35641d/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73656f73617a692f706174682d636f6e7665727465722e737667)](https://github.com/matthiasmullie/path-converter/blob/master/LICENSE)

Path converter is tools to convert relative path with base tag or not to absolute path. In different situation this class tested and must be works correct, If you find some issue, please tell me.

Installing Path Converter
-------------------------

[](#installing-path-converter)

This package can be found on packagist and is best loaded using composer. We support php 5.0, 7.0. The recommended way to install Path-Converter is through [Composer](https://getcomposer.org/).

**composer.phar**

```
 "require": {
    "seosazi/path-converter": "^1.0"
}

```

or

```
 composer require seosazi/path-converter

```

Usage
-----

[](#usage)

First you create an object of this class and set the page address as a parameter. Second, set the base tag address, if any. Finally, you can use Convert to change any address on this page to absolute path.

```
