https://github.com/gabboxl/linkshorter
A simple PHP class which inlcude the most link-shortener services.
https://github.com/gabboxl/linkshorter
adfly adfocus class link linkshortener php powerful shortener shorter simple useful-scripts
Last synced: 2 months ago
JSON representation
A simple PHP class which inlcude the most link-shortener services.
- Host: GitHub
- URL: https://github.com/gabboxl/linkshorter
- Owner: Gabboxl
- License: agpl-3.0
- Created: 2018-03-10T15:51:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T20:48:17.000Z (over 6 years ago)
- Last Synced: 2025-03-23T00:31:57.066Z (2 months ago)
- Topics: adfly, adfocus, class, link, linkshortener, php, powerful, shortener, shorter, simple, useful-scripts
- Language: PHP
- Homepage: https://linkshorter.gabboxl.ga
- Size: 74.2 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LinkShorter [](https://travis-ci.org/Gabboxl/LinkShorter)
_A link. Shorter._
A simple PHP class which inlcude the most link-shortener services.
You can also log-in with your own credentials on all the services!-----------------------------------------------------
The LinkShorter class is very simple to use,
here's an example:
`require "class-linkshorter.php";`
`$r = new LinkShorter($service, $link);`
replace `$service` variable with the name of the service (ex. adfly, adfocus, googl...) and the `$link` variable with the long url which you want to short.
To get the shorten link, use the `getLink` function: `$r->getLink();`
**You can also get errors with the** `getError` **method.** (Please visit the relative section)
There is a full working example in `example.php`.
You can find also a `method-specific documentation` (for adfly method, handling errors etc..) [here](https://linkshorter.gabboxl.ga/methods).
This class and the documentation **are still in developement**, so you can find bugs or other issues.