2017 © Pedro Peláez
 

library url_helper

support some function to manuplation with url

image

duy/url_helper

support some function to manuplation with url

  • Monday, November 20, 2017
  • by nguyen van duy
  • Repository
  • 0 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

duy/url_helper package

Introduce

This package supports manipulation with url:, (*1)

  • Check url.
  • Merge an url with a path.
  • Parse an url to get partials such as: scheme, host, port., (*2)

    Additional, this package also provide some simple test codes in order to assert running of source is correct. All codes for testing is placed in tests directory., (*3)

    Install

    Install Composer

    First of all, you need to install Composer in this tutorial., (*4)

    Install package duy/url_helper

    • Create an empty project., (*5)

    • Open command line in your device and move to your root directory of project, type the follow commands:, (*6)

      composer require duy/url_helper, (*7)

    Usage

    Create an instance of UrlHelper

    $urlHelper = new UrlHelper();, (*8)

    Check an url

    $urlHelper->isValidUrl($urlToCheck); //return true if $urlToCheck is a valid url, contraty return false, (*9)

    Merge an url to a path

    $urlHelper->mergeUrl($baseUrl, $path); //return a string of url if function runs successful, contrary return false, (*10)

    Parse an url

    $urlHelper->parseUrl($url); //return an array of partials in the url if the url is valid, contrary return false, (*11)

The Versions

20/11 2017

dev-master

9999999-dev

support some function to manuplation with url

  Sources   Download

The Requires

  • php >=7.0

 

The Development Requires

by Avatar nguyen van duy

18/11 2017

v1.0.1

1.0.1.0

support some function to manuplation with url

  Sources   Download

The Requires

  • php >=7.0

 

The Development Requires

by Avatar nguyen van duy