{"id":19388916,"url":"https://github.com/james2doyle/parsetweet","last_synced_at":"2025-04-23T23:31:52.108Z","repository":{"id":56996172,"uuid":"58766730","full_name":"james2doyle/parsetweet","owner":"james2doyle","description":"This function can parse tweets and wrap @ mentions, #hashtags, and URLs in link tags.","archived":false,"fork":false,"pushed_at":"2016-05-13T19:27:14.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T22:33:07.357Z","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/james2doyle.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":"2016-05-13T19:22:14.000Z","updated_at":"2022-11-24T04:46:06.000Z","dependencies_parsed_at":"2022-08-21T14:10:20.275Z","dependency_job_id":null,"html_url":"https://github.com/james2doyle/parsetweet","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fparsetweet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fparsetweet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fparsetweet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fparsetweet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/james2doyle","download_url":"https://codeload.github.com/james2doyle/parsetweet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250532147,"owners_count":21446128,"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-10T10:14:02.227Z","updated_at":"2025-04-23T23:31:51.216Z","avatar_url":"https://github.com/james2doyle.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"parse_tweet\n===========\n\nThis package adds a single function called `parse_tweet` to your project. It does one thing. Parses tweets.\n\nThis function can parse @mentions, #hashtags, and URLs. All links are given `target=\"_blank\"` and a title when appropriate.\n\n## Installation\n\nPut a file named composer.json at the root of your project, containing your project dependencies:\n\n```json\n{\n    \"require\": {\n        \"james2doyle/parsetweet\": \"\u003e=1.0\"\n    }\n}\n```\n\nOr use `composer require james2doyle/parsetweet`\n\n## Examples\n\nHere are some example outputs:\n\n```\n\"This is a simple link https://google.com\" == \"This is a simple link \u003ca href=\"https://google.com\" target=\"_blank\"\u003ehttps://google.com\u003c/a\u003e\"\n\n\"This is a simple mention for @james2doyle\" == \"This is a simple mention for \u003ca title=\"@james2doyle\" href=\"http://twitter.com/james2doyle\" target=\"_blank\"\u003e@james2doyle\u003c/a\u003e\"\n\n\"This is a simple #hashtag\" == \"This is a simple \u003ca title=\"#hashtag\" href=\"https://twitter.com/search?q=%23hashtag\u0026src=hash\" target=\"_blank\"\u003e#hashtag\u003c/a\u003e\"\n\n\"This #weather is crazy! @weatherchannel\" == \"This \u003ca title=\"#weather\" href=\"https://twitter.com/search?q=%23weather\u0026src=hash\" target=\"_blank\"\u003e#weather\u003c/a\u003e is crazy! \u003ca title=\"@weatherchannel\" href=\"http://twitter.com/weatherchannel\" target=\"_blank\"\u003e@weatherchannel\u003c/a\u003e\"\n\n\"@james2doyle you need to visit https://warpaintmedia.ca because it is #cool!\" == \"\u003ca title=\"@james2doyle\" href=\"http://twitter.com/james2doyle\" target=\"_blank\"\u003e@james2doyle\u003c/a\u003e you need to visit \u003ca href=\"https://warpaintmedia.ca\" target=\"_blank\"\u003ehttps://warpaintmedia.ca\u003c/a\u003e because it is \u003ca title=\"#cool\" href=\"https://twitter.com/search?q=%23cool\u0026src=hash\" target=\"_blank\"\u003e#cool\u003c/a\u003e!\"\n```\n\n## Running tests\n\nGo to the project root and run `phpunit`.\n\n## License\n\n**The MIT License**\n\nCopyright (c) 2014 [James Doyle](http://twitter.com/james2doyle) james2doyle@gmail.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fparsetweet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames2doyle%2Fparsetweet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fparsetweet/lists"}