Skip to content

BITVoxy/Yourls-PHP-class

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Yourls-PHP-Simpleclass

This class is designed to shorten links in a minimum number of commands for YOURLS.

Usage for unique link

<?php
require_once('yourls.class.php');
$yourls = new yourls("http://YOUR_YOURLS_URI/yourls-api.php", "signature");
$yourls->link("http://www.google.com/"); 
echo $yourls->link;
?>

Usage for multiple links:

<?php
require_once('yourls.class.php');
$yourls = new yourls("http://YOUR_YOURLS_URI/yourls-api.php", "signature");
$yourls->content("Hello World! http://www.google.com/ http://www.yahoo.com/"); 
echo $yourls->content;
?>

Reference links

YOURLS Admin Tools - API Signature - https://YOUR_DOMAIN/admin/tools.php YOURLS API Guide

About

Yourls PHP class as simple as possible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%