{"id":15068582,"url":"https://github.com/prolific/sitemaps","last_synced_at":"2025-04-10T17:36:21.365Z","repository":{"id":57045202,"uuid":"103436601","full_name":"prolific/sitemaps","owner":"prolific","description":"A simple, scalable, highly extensible and seo friendly php sitemap generator. It also supports image sitemaps.","archived":false,"fork":false,"pushed_at":"2018-02-07T19:45:06.000Z","size":18,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T15:11:20.884Z","etag":null,"topics":["php","php7","seo-friendly","sitemap","sitemap-generator","sitemap-xml","sitemaps"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prolific.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":"2017-09-13T18:33:31.000Z","updated_at":"2023-09-08T17:29:56.000Z","dependencies_parsed_at":"2022-08-24T04:50:34.903Z","dependency_job_id":null,"html_url":"https://github.com/prolific/sitemaps","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolific%2Fsitemaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolific%2Fsitemaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolific%2Fsitemaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolific%2Fsitemaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prolific","download_url":"https://codeload.github.com/prolific/sitemaps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262037,"owners_count":21074231,"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":["php","php7","seo-friendly","sitemap","sitemap-generator","sitemap-xml","sitemaps"],"created_at":"2024-09-25T01:38:25.642Z","updated_at":"2025-04-10T17:36:21.348Z","avatar_url":"https://github.com/prolific.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Sitemaps Package\n\nA simple, scalable, highly extensible and seo friendly php sitemap generator. It also supports image sitemap.\n\n## Installation\n\nYou can install the package through composer:\n\n\u003e composer require prolificrohit/sitemaps\n\n## Examples\n\n- For any array of urls:\n\n  ```\n    $sitemap = new Sitemap(\"sitemaps/test.xml\");\n    $sitemap-\u003esetMaxUrls(5000);\n    $sitemap-\u003esetBuffer(1000);\n    foreach ($urls as $url) {\n        $sitemap-\u003eaddUrl($url);\n    }\n    $fileNames = $sitemap-\u003efinish();\n  ```\n\n- To add images:\n\n  ```\n  foreach ($items as $item) {\n      $sitemap-\u003eaddUrl($item-\u003elink, function($url) use($item){\n          $url-\u003eaddImage($item-\u003eimage, \"Caption\", \"Title\");\n      });\n  }\n  ```\n\n## Dependency\n\nIt is a simple php package and hence it supports all php based frameworks like laravel, zend, symfony, falcon, lumen etc. The only dependency for this package is PHP.\n\n## Coming Soon\n\nSupport for video and news sitemap is on the way.\n\n## License\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://github.com/prolificrohit/sitemaps/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprolific%2Fsitemaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprolific%2Fsitemaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprolific%2Fsitemaps/lists"}