Skip to content

alexalouit/Yourls-PHP-Simpleclass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Yourls-PHP-Simpleclass

This class was designed to shorten links in a minimum number of commands.

Usage for unique link

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

Usage for multiple links:

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

About

Yourls PHP class as simple as possible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages