Skip to content
forked from YOURLS/YOURLS

πŸ”— The π˜₯𝘦 𝘧𝘒𝘀𝘡𝘰 standard, self hosted, powerful and customizable, URL shortener in PHP

License

Notifications You must be signed in to change notification settings

projectedanx/YOURLS

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Your Own URL Shortener

CI Scrutinizer Code Quality PHP Version Support Packagist OpenCollective OpenCollective

YOURLS is a set of PHP scripts that will allow you to run Your Own URL Shortener, on your server. You'll have full control over your data, detailed stats, analytics, plugins, and more. It's free and open-source.

Table of Contents

Getting Started

Check out the complete documentation on docs.yourls.org. It contains everything from beginners to experts.

Setup

  1. Download YOURLS: Clone or download the YOURLS repository from GitHub.
  2. Configure your server: Make sure your server meets the requirements:
    • PHP 7.2 or greater
    • MySQL 5.0 or greater
    • mod_rewrite enabled
  3. Create a database: Create a new MySQL database and a user with full privileges.
  4. Configure YOURLS:
    • Rename user/config-sample.php to user/config.php.
    • Open user/config.php and fill in the required database settings.
    • Customize the other settings to your liking.
  5. Install YOURLS: Open your browser and navigate to http://your-site.com/admin/install.php.
  6. Secure your installation:
    • Make sure the user/config.php file is not publicly accessible.
    • Change the default username and password in user/config.php.
    • Delete the admin/install.php file after the installation is complete.

Usage

Admin Interface

The admin interface is located at http://your-site.com/admin/. From here, you can:

  • Shorten URLs: Add new short URLs and custom keywords.
  • Manage URLs: View, edit, and delete existing short URLs.
  • View stats: See detailed statistics for each short URL, including clicks, referrers, and geographic location.
  • Manage plugins: Activate and deactivate plugins to extend the functionality of YOURLS.
  • Use tools: Access the bookmarklets and API information.

API

YOURLS provides a simple API that allows you to shorten URLs, get stats, and more. The API is located at http://your-site.com/yourls-api.php.

For more information on how to use the API, see the API documentation.

Bookmarklets

YOURLS comes with handy bookmarklets for easier link shortening and sharing. To use them, drag and drop the links from the Tools page in the admin interface to your browser's toolbar.

Architecture

The YOURLS application is structured as follows:

  • /admin: Contains the files for the admin interface.
  • /includes: Contains the core application files, including the functions for handling URLs, the database, and the API.
  • /user: Contains user-specific files, such as the configuration file and any custom plugins or pages.
  • / (root): Contains the main entry points for the application, including the redirection handler, the API, and the admin interface.

Community news, tips and tricks

Contributing

Feature suggestion? Bug to report?

Before opening any issue, please search for existing issues (open and closed) and read the Contributing Guidelines.

Backers

Do you use and enjoy YOURLS? Become a backer and show your support to our open source project.

Sponsors

Does your company use YOURLS? Ask your manager or marketing team if your company would be interested in supporting our project. Your company logo will show here. Help support our open-source development efforts by becoming a sponsor.

License

Free software. Do whatever the hell you want with it. YOURLS is released under the MIT license.

About

πŸ”— The π˜₯𝘦 𝘧𝘒𝘀𝘡𝘰 standard, self hosted, powerful and customizable, URL shortener in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 93.7%
  • JavaScript 4.3%
  • CSS 1.9%
  • HTML 0.1%