Skip to content

swt83/php-yourls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOURLS

A PHP package for working w/ the YOURLS API.

Install

Normal composer install.

Usage

Call the desired method and submit the necessary fields as a single array:

$result = Travis\YOURLS::shorturl(array(
    'endpoint' => 'http://mydomain.com/', // always required
    'username' => 'foo', // always required
    'password' => 'bar', // always required
    'url' => 'http://www.reallylongurlthatistoolongtouseinanypracticalway.com',
));

For details on what methods are avialable, check the API documentation.

Notes

When passing the API endpoint, don't include the yourls-api.php portion of the URL. Simply provide the domain where your installation of YOURLS lives, such as http://mycustomyourls.com.

About

A PHP package for working w/ the YOURLS API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages