PHP Classes

Make SEO Links: Generate user friendly links from parameters

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 107 All time: 9,695 This week: 455Up
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

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 (2)  
File Role Description
Plain text file class.link.php Class maker link
Plain text file demo.php Example use class link

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:107
This week:0
All time:9,695
This week:455Up