2017 © Pedro Peláez
 

library lib-url

URL building library that allows dynamic registration at runtime.

image

openlss/lib-url

URL building library that allows dynamic registration at runtime.

  • Wednesday, May 8, 2013
  • by nullivex
  • Repository
  • 1 Watchers
  • 1 Stars
  • 131 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

openlss/lib-url

URL building library that allows dynamic registration at runtime., (*1)

Usage

use \LSS\Url;

//registration
Url::_register('home',Url::_prep().'/index.php');
Url::_register('myapp',Url::home().'?act=myapp');
Url::_register('myapp_create',Url::myapp().'&do=create');
Url::_register('myapp_edit',Url::myapp().'&do=edit&id=$1');

//usage
$url = Url::home();
$url = Url::myapp();
$url = Url::myapp_create();
$url = Url::myapp_edit($id);

Reference

(string) Url::_prep()

Returns the configured root URL, (*2)

(bool) Url::_isCallable($func)

Check if a URL function has been registered, (*3)

(array) Url::_all()

Returns all URLs that dont need arguments (global URLs), (*4)

(void) Url::_register($name,$url)

  • $name The function name to access the URL
  • $url The URL itself, use of other functions is encouraged
    • $1 $2 $3 Numbered arguments similar to regex back-referencing they reference the parameter number passed to the URL function

The Versions

08/05 2013

0.0.11

0.0.11.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

templating phptal tal

08/05 2013

dev-master

9999999-dev http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

templating phptal tal

09/04 2013

dev-0.0.x-dev

dev-0.0.x-dev http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

templating phptal tal

09/04 2013

0.0.10

0.0.10.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

templating phptal tal

07/04 2013

0.0.7

0.0.7.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

templating phptal tal

07/04 2013

0.0.8

0.0.8.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

templating phptal tal

07/04 2013

0.0.9

0.0.9.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

templating phptal tal

03/04 2013

0.0.6

0.0.6.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

templating phptal tal

03/04 2013

0.0.4

0.0.4.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

templating phptal tal

03/04 2013

0.0.5

0.0.5.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

templating phptal tal

27/03 2013

0.0.3

0.0.3.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

templating phptal tal

26/03 2013

0.0.2

0.0.2.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

templating phptal tal

24/03 2013

0.0.1

0.0.1.0 http://openlss.org

URL building library that allows dynamic registration at runtime.

  Sources   Download

LGPL-3.0+

The Requires

 

templating phptal tal