{"id":16233276,"url":"https://github.com/marcw/weaver","last_synced_at":"2025-07-14T02:37:36.948Z","repository":{"id":27736846,"uuid":"31224535","full_name":"marcw/weaver","owner":"marcw","description":"A tiny lib to weave HTML parts together","archived":false,"fork":false,"pushed_at":"2015-04-06T09:05:33.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T17:49:49.381Z","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/marcw.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":"2015-02-23T19:12:40.000Z","updated_at":"2015-04-06T09:05:33.000Z","dependencies_parsed_at":"2022-09-03T07:12:28.533Z","dependency_job_id":null,"html_url":"https://github.com/marcw/weaver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcw/weaver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcw%2Fweaver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcw%2Fweaver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcw%2Fweaver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcw%2Fweaver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcw","download_url":"https://codeload.github.com/marcw/weaver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcw%2Fweaver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265233753,"owners_count":23731825,"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-10T13:12:03.188Z","updated_at":"2025-07-14T02:37:36.924Z","avatar_url":"https://github.com/marcw.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weaver\n\nWeaves HTML blocks and fragments together.\n\n```\n\u003c?php\n\n$weaver = new \\MarcW\\Weaver\\Weaver();\n$body = '\u003cp\u003efoobar\u003c/p\u003e\u003cp\u003ebarfoo\u003c/p\u003e';\n$fragments = ['\u003cimg src=\"/foobar.png\" /\u003e'];\n$result = $weaver-\u003eweave($body, $fragments);\n// $results contains: \u003cp\u003efoobar\u003c/p\u003e\u003cimg src=\"/foobar.png\" /\u003e\u003cp\u003ebarfoo\u003c/p\u003e\n```\n\nIt's also possible to implicity tells the library where to weaves the HTML pieces.\n\n```\n\u003c?php\n\n$weaver = new \\MarcW\\Weaver\\Weaver();\n$body = '\u003cp\u003efoobar\u003c/p\u003e\u003cp\u003ebarfoo\u003c/p\u003e__WEAVE__';\n$fragments = ['\u003cimg src=\"/foobar.png\" /\u003e'];\n$result = $weaver-\u003eweave($body, $fragments);\n// $results contains: \u003cp\u003efoobar\u003c/p\u003e\u003cp\u003ebarfoo\u003c/p\u003e\u003cimg src=\"/foobar.png\" /\u003e\n```\n\n## License and Copyright\n\nSee LICENSE file in this repository\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcw%2Fweaver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcw%2Fweaver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcw%2Fweaver/lists"}