2017 © Pedro Peláez
 

library uriman

This library takes good care of URI or URL of a page.

image

horlarme/uriman

This library takes good care of URI or URL of a page.

  • Friday, March 24, 2017
  • by HorlarME
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

HorlarME/uriman


Github: https://github.com/horlarme/uriman, (*1)

Description


uriman is a PHP library which is meant to manipulate the Uniform Resource Identifier (URI) of a particular web site or page. uriman is developed to work with all PHP versions., (*2)

Directory

File folder structure of uriman., (*3)

  • uriman (folder)
    • src (folder)
      • uriman.php (file) The main class or program.
    • Vendor (folder) Composer Folder and File
  • index.php (file) A test file to test the program, please delete before final production.

Usage

To start the library, include the main class using the code below, (*4)

include_once "uriman/src/uriman.php";

Or you could just add the library directly to your app using composer, (*5)

composer require horlarme/uriman

Example:, (*6)

use uriman\uriman; //uriman namespace

$uri = new uriman; //Using the class file

Use the below code to start or instantiate uriman to get what it needs to function, (*7)

$uri->start(); //Starting uriman

To get the full address of the current page, (*8)

echo "My Address: " . $uri->address . "<br />\n"; //Get the complete URL address of the current page

To get the value of a url/uri query, (*9)

echo "The value for name: " . $uri->show("name") . "<br />\n"; //Getting the value of a URI query

To edit a value of a uri query, (*10)

$uri->edit("name", "Lawal Oladipupo");, (*11)

The below code output the uri queries as an array, (*12)

echo "<pre>";
print_r($uri->uri_array);
echo "</pre><br />";

The below code output the uri values as JSON format, (*13)

echo "JSON Format:" . $uri->uri_json;

Note: Please this is the first production file, so there might be some issues and also, the script doesn't produce/provide any error notice, if it doesn't work, you'll have to debug manually., (*14)

Contact the developer: lawboi4love@gmail.com, (*15)

The Versions

24/03 2017

dev-master

9999999-dev

This library takes good care of URI or URL of a page.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.0

 

by Lawal Oladipupo

18/03 2017

1.0

1.0.0.0

This library takes good care of URI or URL of a page.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.0

 

by Lawal Oladipupo