PHP Classes

Make SEO Links: Generate user friendly links from parameters

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 107 This week: 1All time: 9,664 This week: 560Up
Version License PHP version Categories
make-link 1Artistic License5HTTP, PHP 5
Description 

Author

This is a simple class that can generate user friendly links from parameters.

It can take a base URL path and an array of parameter values and generates a user friendly URL from the values separating them with slashes / .

The class can also extract the base URL from a previously generates user friendly URL.

Picture of mohammad
Name: mohammad <contact>
Classes: 1 package by
Country: Iran Iran
Age: ???
All time rank: 439091 in Iran Iran
Week rank: 411 Up4 in Iran Iran Up

Example


<?php
   
include "class.link.php";
   
//example send array in params
       
echo link::makelinkget(array('r'=>'post','id'=>1,'t'=>"title"));
       
//get link for site
            
echo "<br>" link::makelink('post',array('id'=>1,'t'=>"title"));
?>


  Files folder image Files  
File Role Description
Plain text file class.link.php Class maker link
Plain text file demo.php Example use class link

 Version Control Unique User Downloads Download Rankings  
 0%
Total:107
This week:1
All time:9,664
This week:560Up