2017 © Pedro Peláez
 

library get-url-part

Very simple and minimal library to get a part of the URL from

image

diversen/get-url-part

Very simple and minimal library to get a part of the URL from

  • Wednesday, April 26, 2017
  • by diversen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

get-url-part

Very simple and minimal PHP library to get a part of the URL from $_SERVER['REQUEST_URI']. No dependencies., (*1)

Install:, (*2)

composer require diversen/get-url-part

Usage:, (*3)

use diversen\urlPart

$urlPart = new urlPath();
$urlPArt->getPart(0); // Returns e.g. 'test' from http://localhost:8080/test/etc/

Or as a static method:, (*4)

urlPart::get(0);

Test:, (*5)

See index.php, (*6)

The Versions

26/04 2017

dev-master

9999999-dev

Very simple and minimal library to get a part of the URL from

  Sources   Download

MIT

26/04 2017

v1.0.2

1.0.2.0

Very simple and minimal library to get a part of the URL from

  Sources   Download

MIT

26/04 2017

v1.0.1

1.0.1.0

Very simple and minimal library to get a part of the URL from

  Sources   Download

MIT

26/04 2017

v1.0.0

1.0.0.0

Very simple and minimal library to get a part of the URL from

  Sources   Download

MIT