{"id":19326031,"url":"https://github.com/linkorb/smartlink","last_synced_at":"2026-03-08T14:39:00.855Z","repository":{"id":14935386,"uuid":"17659873","full_name":"linkorb/SmartLink","owner":"linkorb","description":"Boost SEO performance by automatically adding SmartLinks to your HTML content","archived":false,"fork":false,"pushed_at":"2016-01-17T19:20:34.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-02T04:01:38.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"zeromq/cppzmq","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linkorb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-12T08:18:10.000Z","updated_at":"2019-09-27T20:23:16.000Z","dependencies_parsed_at":"2022-09-02T03:12:31.823Z","dependency_job_id":null,"html_url":"https://github.com/linkorb/SmartLink","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/linkorb%2FSmartLink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2FSmartLink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2FSmartLink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2FSmartLink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkorb","download_url":"https://codeload.github.com/linkorb/SmartLink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250318886,"owners_count":21411008,"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-11-10T02:12:15.342Z","updated_at":"2026-03-08T14:39:00.824Z","avatar_url":"https://github.com/linkorb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SEO Smart Link\n\n## Usage\n\n```php\n    \n$input = \u003c\u003c\u003cINPUT\n    \u003cp\u003eHello, my name is Octocat.\u003c/p\u003e\n    \u003cp\u003eI like Github, you can find it on \u003ca href=\"http://github.com\"\u003ehttp://github.com\u003c/a\u003e\u003c/p\u003e\n    \u003cp\u003eI also use google.com a lot, and http://baidu.com too.\u003c/p\u003e\n    \u003ch3\u003eSometimes I use FB. \u003ca href=\"http://dont.change.this.fb\"\u003efb test\u003c/a\u003e, here's an image: \u003cimg src=\"http://dont.change.this.too.fb\" /\u003e\u003c/h3\u003e\n    \u003cp\u003eLink to twitter: @github, and google plus: +github!\u003c/p\u003e\nINPUT;\n    $process = new SmartLink();\n\n    $process-\u003eenableAutoLink();\n\n    $process-\u003eaddAutoCorrection(\n        new AutoCorrection('FB', 'Facebook')\n    );\n\n    $process-\u003eaddAutoCorrection(\n        new AutoCorrection('+github', '+GitHub')\n    );\n\n    $process-\u003eaddKeywordLink(\n        new KeywordLink('Octocat', 'http://octodex.github.com')\n    )-\u003eaddKeywordLink(\n        new KeywordLink('Github', 'http://github.com', true)\n    );\n\n    $process-\u003eaddRegexLink(\n        new RegexLink('@([A-Za-z0-9]+)', 'http://twitter.com/{{1}}', true)\n    );\n\n    $process-\u003eaddRegexLink(\n        new RegexLink('\\+[A-Za-z0-9]+', 'http://plus.google.com/{{0}}/Posts', true)\n    );\n\n    echo $output = $process-\u003eprocess($input);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fsmartlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkorb%2Fsmartlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fsmartlink/lists"}