{"id":17190338,"url":"https://github.com/lode/linkify","last_synced_at":"2026-05-16T17:40:05.045Z","repository":{"id":17637110,"uuid":"20441457","full_name":"lode/linkify","owner":"lode","description":"Finding and linkifying things that look like links","archived":false,"fork":false,"pushed_at":"2016-06-17T07:04:48.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T05:43:02.017Z","etag":null,"topics":["javascript","linkify","multi-lingual","php"],"latest_commit_sha":null,"homepage":null,"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/lode.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":"2014-06-03T12:18:31.000Z","updated_at":"2016-11-21T01:13:34.000Z","dependencies_parsed_at":"2022-09-24T17:56:01.076Z","dependency_job_id":null,"html_url":"https://github.com/lode/linkify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lode/linkify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lode%2Flinkify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lode%2Flinkify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lode%2Flinkify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lode%2Flinkify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lode","download_url":"https://codeload.github.com/lode/linkify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lode%2Flinkify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001981,"owners_count":26083259,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["javascript","linkify","multi-lingual","php"],"created_at":"2024-10-15T01:14:01.091Z","updated_at":"2025-10-09T20:41:33.450Z","avatar_url":"https://github.com/lode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linkify\n\nFinding and linkifying things that look like links.\n\nIt focuses on: a main use case, short and fast code, and code-sharing between backend and frontend.\n\nThis package works for multiple languages, right now php and js.\n\n\n## Install\n\n[Use Composer](http://getcomposer.org/). And use require to get the latest stable version:\n\n```\ncomposer require alsvanzelf/linkify:dev-master\n```\n\n\n## Features\n\nThe basics:\n\n- Anything that starts with `http://`, `https://` or `www.`\n- No support for ftp, email addresses, basic auth, and other edge cases.\n- No advanced validation, for example real tld's.\n- Adds `http://` for the href when it was not given in the text.\n\nThings that work:\n\n- Case insensitive\n- Unicode\n- Paths, query strings, hashes, and other allowed characters\n- Urls starting/ending a line or the whole string\n- Not including punctuation after the url\n- Urls enclosed in brackets\n- Urls with brackets inside the url\n\nThings that -currently- do not work:\n\n- Urls which contain one of: @ |\n\n\n## Usage\n\n``` php\n$linkifier = new alsvanzelf\\linkify\\linkify();\n$linkified = $linkifier-\u003elinkify($plain);\n```\n\n``` js\nvar linkified = linkify(plain);\n```\n\nNote the input string should NOT contain html to prevent XSS.\nAs afterwards one can not differentiate the added anchors from existing html.\n\n\n## Contribute\n\nPull Requests or issues are welcome!\n\nFor example on adding more languages, or perfecting the cases catched.\n\n\n## License\n\n[MIT](/LICENSE)\n\n\n## Thanks\n\nThanks to inspiration from:\n\n- http://blog.codinghorror.com/the-problem-with-urls/\n- https://github.com/misd-service-development/php-linkify\n- http://daringfireball.net/2010/07/improved_regex_for_matching_urls\n- http://daringfireball.net/misc/2010/07/url-matching-regex-test-data.text\n- https://mathiasbynens.be/demo/url-regex\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flode%2Flinkify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flode%2Flinkify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flode%2Flinkify/lists"}