{"id":18045303,"url":"https://github.com/dpb587/shortlink-bundle","last_synced_at":"2025-07-12T15:04:39.692Z","repository":{"id":7536535,"uuid":"8888549","full_name":"dpb587/shortlink-bundle","owner":"dpb587","description":"[WIP] A symfony2 bundle for creating a short link service (e.g. bit.ly, tiny.cc, t.co, goo.gl).","archived":false,"fork":false,"pushed_at":"2013-04-06T23:46:42.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T11:48:32.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dpb587.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-19T20:32:25.000Z","updated_at":"2013-10-28T12:16:09.000Z","dependencies_parsed_at":"2022-09-01T16:22:49.882Z","dependency_job_id":null,"html_url":"https://github.com/dpb587/shortlink-bundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpb587%2Fshortlink-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpb587%2Fshortlink-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpb587%2Fshortlink-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpb587%2Fshortlink-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpb587","download_url":"https://codeload.github.com/dpb587/shortlink-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284914,"owners_count":20913691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T18:12:50.971Z","updated_at":"2025-04-05T03:41:45.810Z","avatar_url":"https://github.com/dpb587.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"A symfony2 bundle for creating a short link service (e.g. bit.ly, tiny.cc, t.co, goo.gl).\n\n\nConfiguration\n-------------\n\nThe following are the defaults (`./app/console config:dump dpb_shortcode`):\n\n    Default configuration for extension with alias: \"dpb_shortlink\"\n    dpb_shortlink:\n    \n        # Redirection URL when accessing / (or null to return a 404)\n        root:                 ~\n    \n        # Options for generating short links\n        link:\n    \n            # Character set to use for auto-generated short codes\n            characters:           ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\n    \n            # Length of auto-generated short codes\n            default_length:       6\n\n\n**Database** - currently only using Doctrine ORM (e.g. MySQL)...\n\n    GRANT USAGE ON *.* TO app_shortlink@localhost IDENTIFIED BY 'test1234';\n    GRANT ALL PRIVILEGES ON app_shortlink.* TO app_shortlink@localhost;\n    CREATE DATABASE app_shortlink CHARSET = utf8 COLLATE = utf8_general_ci;\n\n\n**Security Roles** - the following are used...\n\n * `ROLE_DPB_SHORTLINK_CREATE` - permission to create new links\n\n**QR Codes** - separate library to install from [phpqrcode.sourceforge.net](http://phpqrcode.sourceforge.net/) (LGPL),\nif necessary...\n\n    mkdir Resources/vendor ; cd Resources/vendor/\n    wget 'http://downloads.sourceforge.net/project/phpqrcode/releases/phpqrcode-2010100721_1.1.4.zip'\n    unzip phpqrcode-2010100721_1.1.4.zip\n    rm phpqrcode-2010100721_1.1.4.zip\n\n\nExamples\n--------\n\n**Links**\n\n * `http://localhost/uKWRY9` - standard clickthru link\n * `http://localhost/uKWRY9/url.txt` - simple response of the destination URL\n * `http://localhost/uKWRY9/qrcode.png` - generate QR image - accepts `ec` (correction level; `l`, `m`, `q`, `h`) and `s` (size; 3)\n\n**Security Configuration** (`app/config/security.yml`)\n\n    providers:\n        in_memory:\n            memory:\n                users:\n                    myuser:\n                        password: \"mypass\"\n                        roles:\n                            - \"ROLE_DPB_SHORTLINK_CREATE\"\n    firewalls:\n        api:\n            pattern: \"^/\\+/\"\n            http_basic:\n                realm: \"API Endpoint\"\n\n\n**API**\n\n    curl -si --user myuser:mypass -d url='http://www.example.com/hello-world.html' 'http://localhost/+/link/create-unique' | grep -iE '(location|http/)'\n\n\nLicense\n-------\n\n[MIT License](./LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpb587%2Fshortlink-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpb587%2Fshortlink-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpb587%2Fshortlink-bundle/lists"}