Download the PHP package emrahtoy/url-shortener-and-expander without Composer
On this page you can find all versions of the php package emrahtoy/url-shortener-and-expander. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download emrahtoy/url-shortener-and-expander
More information about emrahtoy/url-shortener-and-expander
Files in emrahtoy/url-shortener-and-expander
Download emrahtoy/url-shortener-and-expander
More information about emrahtoy/url-shortener-and-expander
Files in emrahtoy/url-shortener-and-expander
Vendor emrahtoy
Package url-shortener-and-expander
Short Description Url shortener and expander library
License MIT
Homepage https://github.com/emrahtoy/url-shortener-and-expander
Package url-shortener-and-expander
Short Description Url shortener and expander library
License MIT
Homepage https://github.com/emrahtoy/url-shortener-and-expander
Please rate this library. Is it a good library?
Informations about the package url-shortener-and-expander
PHP URL Shortener and Expander
Url shortener/expander library.
Benefits
- Produces short codes depending on the (integer) id of the record
- Supports legacy or custom short urls. So you can move your old system without changing short urls or short codes
- Uses low server resources
- Reports errors in json format via responseJson static function
- Can count redirects ( on Mysql )
- Supports Doctrine Cache Clients ( example includes redis usage via predis )
- Uses alphanumeric characters and supports all browsers
- Uses PDO in order to prevent SQL injection hacks
- Supports URL check before shorten and after expanded ( checks for http 200 code )
- Redirection after expand is optional ( redirects with 301 for SEO compliance )
- You can change allowed characters used in shortened urls code. This may reduce count of possible shortened url code.
Installation
Requirements:
- PHP
- Mysql DB or Maria DB
- PDO Extension must be enabled
- Credentials will be needed to connect and run SQL queries on database server
- Sql files under sql directory must be applied on database server
- Composer
Install ( via Composer )
Using URL shortener service
Using URL expander service
Available configuration options
Using cache
You can use any cache library supported by Doctrine Cache.
This example uses Predis Client with Redis
All versions of url-shortener-and-expander with dependencies
PHP Build Version
Package Version
The package emrahtoy/url-shortener-and-expander contains the following files
Loading the files please wait ....