Download the PHP package mremi/url-shortener without Composer
On this page you can find all versions of the php package mremi/url-shortener. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mremi/url-shortener
More information about mremi/url-shortener
Files in mremi/url-shortener
Package url-shortener
Short Description A PHP5/PHP7/PHP8 library using API to shorten/expand URL
License MIT
Homepage https://github.com/mremi/UrlShortener
Informations about the package url-shortener
URL shortener library
This library allows you to shorten a URL, reverse is also possible.
Basic Docs
- Installation
- Baidu API
- Bit.ly API
- Google API
- Sina API
- Wechat API
- Chain providers
- Retrieve link
- Contribution
Installation
The preferred method of installation is via Composer. Run the following
command to install the package and add it as a requirement to your project's
composer.json
:
Baidu API
Shorten
You can also use the commands provided by this library, look at the help message:
Some options are available:
Expand
Some options are available:
Bit.ly API V4
Shorten
You can also use the commands provided by this library, look at the help message:
Some arguments are mandatory:
Some options are available:
Expand
Some arguments are mandatory:
Some options are available:
Google API
Shorten
You can also use the commands provided by this library, look at the help message:
Only one argument is mandatory (the long URL) but you can also provide a Google API key:
Some options are available:
Expand
Only one argument is mandatory (the short URL) but you can also provide a Google API key:
Some options are available:
Sina API
Shorten
You can also use the commands provided by this library, look at the help message:
Some options are available:
Expand
Some options are available:
Wechat API
Shorten
You can also use the commands provided by this library, look at the help message:
Some arguments are mandatory:
Some options are available:
Expand
Wechat does not support expand url yet.
Chain providers
Retrieve link
You can retrieve some links using these finders:
Contribution
Any question or feedback? Open an issue and I will try to reply quickly.
A feature is missing here? Feel free to create a pull request to solve it!
I hope this has been useful and has helped you. If so, share it and recommend it! :)
All versions of url-shortener with dependencies
guzzlehttp/guzzle Version ^6.0 || ^7.0
symfony/console Version ^3.1 || ^4.1 || ^5.0 || ^6.0