Author: Manuel Lemos
Package: Custom PHP URL Shortener using PDO
Usually, URL shorter components use a database to store the long and faster versions of a URL.
This class uses the PHP PDO extension to access a database that stores the short URL information. This possibility allows developers to use many types of SQL-based databases to benefit from this component.
About the Custom PHP URL Shortener using PDO Package
The basic purpose is: Create and expand short URLs in a custom domain
Here follows in more detail what it does:
This class can create and expand short URLs in a custom domain.
It can take a given URL as a parameter and store that URL and a short URL code in a database accessed using PDO.
The class takes a previously initialized PDO object to work with MySQL and other databases supported by PDO.
The class can return the short URL code as part of a short URL of a page that a PHP can serve from a custom domain.
When the user browser accesses the short URL page, the class can return the original long URL, so a script that uses the type can redirect the user browser to the original long URL page.
The class can also track the number of hits the short URL gets by the visitors.
This package was considered notable for implementing its benefits in a way that is worth noticing.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.
One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.
You need to be a registered user or login to post a comment
Login Immediately with your account on:
No comments were submitted yet.