{"id":29223,"date":"2017-02-16T20:01:16","date_gmt":"2017-02-16T12:01:16","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=29223"},"modified":"2017-12-11T05:01:42","modified_gmt":"2017-12-10T21:01:42","slug":"polr-url-shorterner","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/","title":{"rendered":"Create Your Own URL Shortener with Polr"},"content":{"rendered":"<p><strong>Mainstream URL shorteners<\/strong> like Bit.ly are great but hard to customize. Their APIs can be limiting, and while they are <strong>perfect for most smaller projects<\/strong>, they do <strong>lack that certain flair<\/strong> of a unique URL shortener.<\/p>\n<p><strong><a target=\"_blank\" href=\"https:\/\/project.polr.me\/\">Polr<\/a><\/strong> is a <strong>free open source URL shortener API<\/strong> that you can install and run locally on your own domain. It\u2019s <strong>written in PHP<\/strong> and <strong>runs on <a target=\"_blank\" href=\"https:\/\/lumen.laravel.com\/\">Lumen<\/a><\/strong>, so it should be easy to deploy for any server. You can actually see a <strong><a target=\"_blank\" href=\"https:\/\/demo.polr.me\/\">live demo here<\/a><\/strong> if you want to try it out.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/url-shortening-services-the-ultimate-list\/\">10+ Best Free URL Shortening Services<\/a>\n\t\t\t\t<\/p>\n<p>Polr allows you to <strong>write your own custom URLs<\/strong> and to <strong>auto-generate a link<\/strong> if needed. You can <strong>install this on any domain<\/strong> to build custom URLs that point to any page anywhere online.<\/p>\n<p>The framework is surprisingly simple to install and it comes with a <strong>full installable web app<\/strong> for your site.<\/p>\n<p>Granted there is a semi-detailed installation guide which you can <a target=\"_blank\" href=\"http:\/\/docs.polrproject.org\/en\/latest\/user-guide\/installation\/\">read here<\/a> if you\u2019re interested. This basically <strong>covers the requirements<\/strong> such as PHP\/MySQL along with the installation steps for working with Laravel\/Lumen.<\/p>\n<p>I\u2019ll say this <strong>is not the simplest solution<\/strong> out there. However it is <strong>secure, powerful,<\/strong> and one of the best tools for <strong>maintaining control<\/strong> over your own custom URL shortener.<\/p>\n<p>If you check the <a target=\"_blank\" href=\"https:\/\/demo.polr.me\/\">demo page<\/a> you can log in using the user\/pass of <strong>demo-admin<\/strong>.<\/p>\n<figure><a target=\"_blank\" href=\"http:\/\/demo.polr.me\/login\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/polr-url-shorterner\/02-polr-links-table.jpg\" alt=\"polr links table\" width=\"1000\" height=\"590\"><\/a><\/figure>\n<p>Polr comes with a <strong>dashboard page<\/strong> displaying all the links ever created on your site. You can <strong>search by keywords<\/strong> or <strong>sort by settings<\/strong> such as creation date. It also lets you <strong>customize or delete certain links from the database<\/strong> if you want to clean up some URLs.<\/p>\n<p>And it has a <strong>fully-fledged <a target=\"_blank\" href=\"http:\/\/docs.polrproject.org\/en\/latest\/developer-guide\/api\/\">API<\/a><\/strong> which lets you (or others) apply for API keys and <strong>build links programmatically<\/strong>. This is huge for <strong>writing your own shareable links<\/strong> that get auto-posted to social networks like Twitter.<\/p>\n<p>Think about huge blogs like Mashable or TechCrunch that run their own URL shorteners. Polr allows anyone to do this <strong>on a simple PHP server<\/strong> with an open source platform.<\/p>\n<p>This is by far the best app for anyone looking to <strong>create a custom URL shortener<\/strong>. It may take some elbow grease to set up but once you get it going this URL shortener will prove invaluable to your marketing strategy.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/how-to-create-url-shortener-with-your-domain\/\">How to Create URL Shortener with Your Domain<\/a>\n\t\t\t\t<\/p>","protected":false},"excerpt":{"rendered":"<p>Mainstream URL shorteners like Bit.ly are great but hard to customize. Their APIs can be limiting, and while they are perfect for most smaller projects, they do lack that certain flair of a unique URL shortener. Polr is a free open source URL shortener API that you can install and run locally on your own&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3393],"tags":[4212],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Create Your Own URL Shortener with Polr - Hongkiat<\/title>\n<meta name=\"description\" content=\"Mainstream URL shorteners like Bit.ly are great but hard to customize. Their APIs can be limiting, and while they are perfect for most smaller projects,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Your Own URL Shortener with Polr\" \/>\n<meta property=\"og:description\" content=\"Mainstream URL shorteners like Bit.ly are great but hard to customize. Their APIs can be limiting, and while they are perfect for most smaller projects,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-16T12:01:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-10T21:01:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/polr-url-shorterner\/02-polr-links-table.jpg\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Create Your Own URL Shortener with Polr\",\"datePublished\":\"2017-02-16T12:01:16+00:00\",\"dateModified\":\"2017-12-10T21:01:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/\"},\"wordCount\":391,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/polr-url-shorterner\\\/02-polr-links-table.jpg\",\"keywords\":[\"URL Shortening\"],\"articleSection\":[\"Toolkit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/\",\"name\":\"Create Your Own URL Shortener with Polr - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/polr-url-shorterner\\\/02-polr-links-table.jpg\",\"datePublished\":\"2017-02-16T12:01:16+00:00\",\"dateModified\":\"2017-12-10T21:01:42+00:00\",\"description\":\"Mainstream URL shorteners like Bit.ly are great but hard to customize. Their APIs can be limiting, and while they are perfect for most smaller projects,\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/polr-url-shorterner\\\/02-polr-links-table.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/polr-url-shorterner\\\/02-polr-links-table.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/polr-url-shorterner\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Your Own URL Shortener with Polr\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Create Your Own URL Shortener with Polr - Hongkiat","description":"Mainstream URL shorteners like Bit.ly are great but hard to customize. Their APIs can be limiting, and while they are perfect for most smaller projects,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/","og_locale":"en_US","og_type":"article","og_title":"Create Your Own URL Shortener with Polr","og_description":"Mainstream URL shorteners like Bit.ly are great but hard to customize. Their APIs can be limiting, and while they are perfect for most smaller projects,","og_url":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-02-16T12:01:16+00:00","article_modified_time":"2017-12-10T21:01:42+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/polr-url-shorterner\/02-polr-links-table.jpg","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Create Your Own URL Shortener with Polr","datePublished":"2017-02-16T12:01:16+00:00","dateModified":"2017-12-10T21:01:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/"},"wordCount":391,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/polr-url-shorterner\/02-polr-links-table.jpg","keywords":["URL Shortening"],"articleSection":["Toolkit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/","url":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/","name":"Create Your Own URL Shortener with Polr - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/polr-url-shorterner\/02-polr-links-table.jpg","datePublished":"2017-02-16T12:01:16+00:00","dateModified":"2017-12-10T21:01:42+00:00","description":"Mainstream URL shorteners like Bit.ly are great but hard to customize. Their APIs can be limiting, and while they are perfect for most smaller projects,","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/polr-url-shorterner\/02-polr-links-table.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/polr-url-shorterner\/02-polr-links-table.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/polr-url-shorterner\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create Your Own URL Shortener with Polr"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-7Bl","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=29223"}],"version-history":[{"count":2,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29223\/revisions"}],"predecessor-version":[{"id":42490,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29223\/revisions\/42490"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=29223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=29223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=29223"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=29223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}