Export YOURLS links into PeakURL-compatible import files.
YOURLS to PeakURL adds a small admin page inside YOURLS that exports all of your short links in formats PeakURL already accepts in its Bulk Import screen.
Current plugin version: 1.0.0
- Export all YOURLS links as
CSV,JSON, orXML - Generate a CSV that is ready for direct upload into PeakURL
- Preserve the YOURLS short keyword as the PeakURL alias
- Preserve the YOURLS title when one exists
- Use YOURLS admin-page registration and nonce protection for downloads
The plugin reads the standard YOURLS URL table and maps fields like this:
- YOURLS
url-> PeakURLurlordestinationUrl - YOURLS
keyword-> PeakURLalias - YOURLS
title-> PeakURLtitle
YOURLS core does not store password-protected or expiry-based links in its standard schema, so the plugin includes those PeakURL fields as blank values.
- Download or clone this repository.
- Copy the repository folder into your YOURLS install at:
user/plugins/YOURLS-to-PeakURL - Confirm the plugin file exists at:
user/plugins/YOURLS-to-PeakURL/plugin.php - Open your YOURLS admin area.
- Go to
Manage Plugins. - Activate
YOURLS to PeakURL.
cd /path/to/yourls/user/plugins
git clone https://github.com/PeakURL/YOURLS-to-PeakURL.gitThen activate the plugin from Manage Plugins in YOURLS.
- Sign in to your YOURLS admin area.
- Open
Manage Plugins. - Click the plugin page link for
PeakURL Export. - Choose one of the export buttons:
Download CSV for PeakURLDownload JSONDownload XML
- Save the exported file.
For most migrations, use the CSV export first. It is the simplest path into PeakURL.
- Sign in to your PeakURL dashboard.
- Open
Dashboard -> Bulk Import. - Open the
File Uploadtab. - Upload the file exported from YOURLS.
- Start the import and review the results.
If you use the CSV export from this plugin, no manual column remapping should be needed.
The CSV export uses these headers:
url,alias,title,password,expiresExample:
url,alias,title,password,expires
https://example.com/article,article-1,Example Article,,
https://example.com/pricing,pricing,Pricing Page,,[
{
"destinationUrl": "https://example.com",
"alias": "example",
"title": "Example",
"password": "",
"expiresAt": ""
}
]<urls>
<url>
<destinationUrl>https://example.com</destinationUrl>
<alias>example</alias>
<title>Example</title>
<password></password>
<expiresAt></expiresAt>
</url>
</urls>- This plugin exports links from the standard YOURLS URL table.
- Password and expiry values are exported as blank fields because YOURLS core does not provide those fields by default.
- If your YOURLS install uses custom plugins that add extra link metadata, this plugin does not export that metadata yet.
- If you want the cleanest migration path, export CSV and import that into PeakURL first.
Check that the path is exactly:
user/plugins/YOURLS-to-PeakURL/plugin.phpYOURLS expects a plugin.php file inside the plugin directory.
Make sure the plugin is activated in Manage Plugins.
Use the CSV export first. It matches PeakURL's Bulk Import file format directly.
This plugin is intentionally small and built around official YOURLS plugin APIs:
- plugin header metadata
- direct-call guard with
YOURLS_ABSPATH yourls_register_plugin_page(...)load-<plugin-page>hook for secure downloadsyourls_get_db(...)for database access