nsmle / ouo-bypass
A PHP library to bypass ouo.io/press short links
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
v1.0.0
2022-04-12 05:05 UTC
Requires
- guzzlehttp/guzzle: ^6.0|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: dev-master
- phpunit/phpunit: 10.0.x-dev
- squizlabs/php_codesniffer: dev-master
README
A PHP library to bypass short links ouo.io or ouo.press.
If you like or use this package, please share your love by starring this repository, or follow @nsmle.
Installation
composer require nsmle/ouo-bypass
Usage
require 'vendor/autoload.php'; use Nsmle\OuoBypass\Api; $ouo = new Api(); $ouo->setOriginUrl("https://ouo.press/ZGawzS"); $ouo->bypass(); $link = $ouo->getDestinationUrl(); echo $link;
Or if you want something simpler you can try some code like below:
$ouo = new Api("https://ouo.press/ZGawzS"); $ouo->bypass(); $link = $ouo->getDestinationUrl();
or
$ouo = new Api("https://ouo.press/ZGawzS"); $link = $ouo->bypass()['destination-url'];
License
Licensed under the terms of the MIT License.