Download the PHP package zerig/url-parser without Composer

On this page you can find all versions of the php package zerig/url-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package url-parser

URL-PARSER \ URL

class which parse url and enable this URL for more operations.

makeItString($url_path)

$url_path [string || array of string]
Correct URL in right FORM. You can use STRING or ARRAYofSTRINGS to create url. This method also erase double slashes.


pop($times)

Remove last part of url PATH. NOT just print, but REMOVE!!!\n

shift($times)

$times [int] How many time
Remove first part of url PATH. NOT just print, but REMOVE!!!

swap($from, $to)

$from [string] which part of URL PATH should be changed
$to [string] changed to this
Change one part of URL PATH for a new one.


get....($exp)

$exp [string] In which form do we want export

  1. getScheme() - how is variable saved [string | array of string | key array]
  2. getScheme("string") - how could be written in URL
  3. getScheme("array") - in array [array of string | key array]

getString()

get the whole URL in string format.


getDepth()

return number of all folder from ROOT

linkRoot()

return path, which return this url to root


addPath($add_part)

$add_part [string | array of strings] add items to ROOT part.

beforePath($add_part)

$add_part [string | array of strings] add items to ROOT part.

addQuery($add_part)

$add_part [key array] add items to ROOT part.


hasExtension()

return 1 if the URL is ending with file: ".../a.html"
return 0 if the URL is ending onn folder: ".../a"

getExtension()

Get extension of URL

removeExtension()

If URL has extension => ".html" it will remove it from path

exist()

check if URL exist as File/Folder

isFolder()

check if URL exist as Folder

isFile()

check if URL exist as File


remove...()

$add_part [key array] add items to ROOT part.

removePath($path_part)

removeQuery($key_array)


All versions of url-parser with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zerig/url-parser contains the following files

Loading the files please wait ....