{"id":21291462,"url":"https://github.com/venkatesh-kcet/sitemap","last_synced_at":"2025-03-15T16:34:00.528Z","repository":{"id":175993058,"uuid":"654430323","full_name":"Venkatesh-KCET/sitemap","owner":"Venkatesh-KCET","description":"The PHP Sitemap Generator is a library that allows users to easily generate sitemaps for their websites. It supports various features such as URL validation, last modification date, change frequency, priority, image sitemaps, video sitemaps, and news sitemaps.","archived":false,"fork":false,"pushed_at":"2023-08-24T15:36:13.000Z","size":15,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T06:22:22.184Z","etag":null,"topics":["image-sitemap","news-sitemap","php-sitemap","sitemap-generator","url-validation","video-sitemap"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Venkatesh-KCET.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-16T05:45:24.000Z","updated_at":"2023-06-26T11:48:47.000Z","dependencies_parsed_at":"2024-11-21T13:36:04.211Z","dependency_job_id":"d9ab5782-6c65-4e72-94b7-96a77579c570","html_url":"https://github.com/Venkatesh-KCET/sitemap","commit_stats":null,"previous_names":["venkatesh-kcet/sitemap"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Venkatesh-KCET%2Fsitemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Venkatesh-KCET%2Fsitemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Venkatesh-KCET%2Fsitemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Venkatesh-KCET%2Fsitemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Venkatesh-KCET","download_url":"https://codeload.github.com/Venkatesh-KCET/sitemap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243760401,"owners_count":20343626,"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":["image-sitemap","news-sitemap","php-sitemap","sitemap-generator","url-validation","video-sitemap"],"created_at":"2024-11-21T13:32:40.060Z","updated_at":"2025-03-15T16:34:00.507Z","avatar_url":"https://github.com/Venkatesh-KCET.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sitemap Generator\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![Version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://github.com/your-username/sitemap)\n\n## Description\nThe Sitemap Generator Library is a student project implemented as a PHP Composer package. It provides a simple and efficient way to generate sitemaps for websites. This library allows you to create XML sitemaps that search engines can use to discover and index the pages on your website.\n\n## Features\n- Easy-to-use API for generating sitemaps\n- Support for different types of URLs (e.g., web pages, images, videos, news)\n- Automatic handling of sitemap limits (e.g., maximum URLs per sitemap, sitemap index creation)\n- Customizable options for configuring the sitemap generation process\n- Efficient and scalable for large websites\n- Compatible with popular PHP frameworks and content management systems\n\n## Installation\nYou can install the Sitemap Generator Library using Composer:\n\n```\ncomposer require venkatesh-kcet/sitemap\n```\n\n## Usage\nHere is a simple example of how to use the Sitemap Generator Library:\n\n### URL Sitemap\n```php\n\u003c?php\n    include \"vendor/autoload.php\";\n    use VenkateshKcet\\Sitemap\\Sitemap;\n    $sitemap = new Sitemap();\n    $array = [\n        'loc' =\u003e \"https://pypi.org/search/?q=sitemap\",\n    ];\n    $sitemap-\u003eadd_url($array);\n    $sitemap-\u003ewrite_sitemap(__DIR__, 1000);\n    $sitemap-\u003ewrite_sitemapIndex($folderPath = __DIR__, $path = \"http://localhost/sitemap/\");\n```\n\n### Image Sitemap\n```php\n\u003c?php\n    include \"vendor/autoload.php\";\n    use VenkateshKcet\\Sitemap\\Sitemap;\n    $sitemap = new Sitemap();\n    $array = [\n        'loc' =\u003e \"https://pypi.org/search/?q=sitemap\",\n        'images' =\u003e [\"https://pypi.org/search/1.png\", \"https://pypi.org/search/2.png\"]\n    ];\n    $sitemap-\u003eadd_url($array);\n    $sitemap-\u003ewrite_sitemap(__DIR__, 1000);\n    $sitemap-\u003ewrite_sitemapIndex($folderPath = __DIR__, $path = \"http://localhost/sitemap/\");\n```\n\n### Video Sitemap\n```php\n\u003c?php\n    include \"vendor/autoload.php\";\n    use VenkateshKcet\\Sitemap\\Sitemap;\n    $sitemap = new Sitemap();\n    $array = [\n        'loc' =\u003e \"https://pypi.org/search/?q=sitemap\",\n        'videos' =\u003e [\n            0 =\u003e [\n                \"thumbnail_loc\" =\u003e \"https://www.example.com/thumbs/123.jpg\",\n                \"title\" =\u003e \"Grilling steaks for summer\",\n                \"description\" =\u003e \"Alkis shows you how to get perfectly done steaks every time\",\n                \"content_loc\" =\u003e \"http://streamserver.example.com/video123.mp4\",\n                \"player_loc\" =\u003e \"https://www.example.com/videoplayer.php?video=123\",\n                \"duration\" =\u003e 600,\n                \"expiration_date\" =\u003e \"2021-11-05T19:20:30+08:00\",\n                \"rating\" =\u003e 4.2,\n                \"view_count\" =\u003e 12345,\n                \"publication_date\" =\u003e \"2007-11-05T19:20:30+08:00\",\n                \"family_friendly\" =\u003e \"yes\",\n                \"restriction\" =\u003e [\n                    \"relationship\" =\u003e \"allow\",\n                    \"value\" =\u003e [\"IE\", \"GB\", \"US\", \"CA\"]\n                ],\n                \"platform\" =\u003e [\n                    \"relationship\" =\u003e \"allow\",\n                    \"value\" =\u003e [\"web\", \"tv\"]\n                ],\n                \"price\" =\u003e [\n                    \"currency\" =\u003e \"EUR\",\n                    \"value\" =\u003e 1.99\n                ],\n                \"requires_subscription\" =\u003e \"yes\",\n                \"uploader\" =\u003e [\n                    \"info\" =\u003e \"https://www.example.com/users/grillymcgrillerson\",\n                    \"value\" =\u003e \"GrillyMcGrillerson\"\n                ],\n                \"live\" =\u003e \"no\",\n                \"tag\" =\u003e [\"steak\", \"meat\", \"summer\", \"outdoor\"]\n            ],\n            1 =\u003e [\n                \"thumbnail_loc\" =\u003e \"https://www.example.com/thumbs/123.jpg\",\n                \"title\" =\u003e \"Grilling steaks for summer\",\n                \"description\" =\u003e \"Alkis shows you how to get perfectly done steaks every time\",\n                \"content_loc\" =\u003e \"http://streamserver.example.com/video123.mp4\",\n                \"player_loc\" =\u003e \"https://www.example.com/videoplayer.php?video=123\"\n            ]\n        ]\n    ];\n    $sitemap-\u003eadd_url($array);\n    $sitemap-\u003ewrite_sitemap(__DIR__, 1000);\n    $sitemap-\u003ewrite_sitemapIndex($folderPath = __DIR__, $path = \"http://localhost/sitemap/\");\n```\n\n### NEWS Sitemap\n```php\n\u003c?php\n    include \"vendor/autoload.php\";\n    use VenkateshKcet\\Sitemap\\Sitemap;\n    $sitemap = new Sitemap();\n    $array = [\n        'loc' =\u003e \"https://pypi.org/search/?q=sitemap\",\n        'news' =\u003e [\n            'publication' =\u003e [\n                'name' =\u003e 'The Example Times',\n                'language' =\u003e 'en'\n            ],\n            'publication_date' =\u003e '2008-12-23',\n            'title' =\u003e 'Companies A, B in Merger Talks'\n        ]\n    ];\n    $sitemap-\u003eadd_url($array);\n    $sitemap-\u003ewrite_sitemap(__DIR__, 1000);\n    $sitemap-\u003ewrite_sitemapIndex($folderPath = __DIR__, $path = \"http://localhost/sitemap/\");\n\n```\n\n### Combine Sitemap\n```php\n\u003c?php\n    include \"vendor/autoload.php\";\n    use VenkateshKcet\\Sitemap\\Sitemap;\n    $sitemap = new Sitemap();\n    $array = [\n        'loc' =\u003e \"https://pypi.org/search/?q=sitemap\",\n        'images' =\u003e [\"https://pypi.org/search/1.png\", \"https://pypi.org/search/2.png\"],\n        'videos' =\u003e [\n            0 =\u003e [\n                \"thumbnail_loc\" =\u003e \"https://www.example.com/thumbs/123.jpg\",\n                \"title\" =\u003e \"Grilling steaks for summer\",\n                \"description\" =\u003e \"Alkis shows you how to get perfectly done steaks every time\",\n                \"content_loc\" =\u003e \"http://streamserver.example.com/video123.mp4\",\n                \"player_loc\" =\u003e \"https://www.example.com/videoplayer.php?video=123\",\n                \"duration\" =\u003e 600,\n                \"expiration_date\" =\u003e \"2021-11-05T19:20:30+08:00\",\n                \"rating\" =\u003e 4.2,\n                \"view_count\" =\u003e 12345,\n                \"publication_date\" =\u003e \"2007-11-05T19:20:30+08:00\",\n                \"family_friendly\" =\u003e \"yes\",\n                \"restriction\" =\u003e [\n                    \"relationship\" =\u003e \"allow\",\n                    \"value\" =\u003e [\"IE\", \"GB\", \"US\", \"CA\"]\n                ],\n                \"platform\" =\u003e [\n                    \"relationship\" =\u003e \"allow\",\n                    \"value\" =\u003e [\"web\", \"tv\"]\n                ],\n                \"price\" =\u003e [\n                    \"currency\" =\u003e \"EUR\",\n                    \"value\" =\u003e 1.99\n                ],\n                \"requires_subscription\" =\u003e \"yes\",\n                \"uploader\" =\u003e [\n                    \"info\" =\u003e \"https://www.example.com/users/grillymcgrillerson\",\n                    \"value\" =\u003e \"GrillyMcGrillerson\"\n                ],\n                \"live\" =\u003e \"no\",\n                \"tag\" =\u003e [\"steak\", \"meat\", \"summer\", \"outdoor\"]\n            ],\n            1 =\u003e [\n                \"thumbnail_loc\" =\u003e \"https://www.example.com/thumbs/123.jpg\",\n                \"title\" =\u003e \"Grilling steaks for summer\",\n                \"description\" =\u003e \"Alkis shows you how to get perfectly done steaks every time\",\n                \"content_loc\" =\u003e \"http://streamserver.example.com/video123.mp4\",\n                \"player_loc\" =\u003e \"https://www.example.com/videoplayer.php?video=123\"\n            ]\n        ],\n        'news' =\u003e [\n            'publication' =\u003e [\n                'name' =\u003e 'The Example Times',\n                'language' =\u003e 'en'\n            ],\n            'publication_date' =\u003e '2008-12-23',\n            'title' =\u003e 'Companies A, B in Merger Talks'\n        ]\n    ];\n    $sitemap-\u003eadd_url($array);\n    $sitemap-\u003ewrite_sitemap(__DIR__, 1000);\n    $sitemap-\u003ewrite_sitemapIndex($folderPath = __DIR__, $path = \"http://localhost/sitemap/\");    \n```\n\nFor more detailed usage instructions and configuration options, please refer to the [documentation](https://github.com/Venkatesh-KCET/sitemap/docs).\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/Venkatesh-KCET/sitemap/LICENSE) file for more information.\n\n## Contributing\nContributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.\n\n## Examples\nHere are a few examples of how you can use the Sitemap Generator Library:\n\n- Generate a sitemap for a simple static website\n- Integrate the sitemap generation into a apy web application\n\n## Support\nIf you need any assistance or have any questions, please [open an issue](https://github.com/Venkatesh-KCET/sitemap/issues) on GitHub.\n\n---\n\nFeel free to customize the content and structure of the documentation to best fit your library and its features.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenkatesh-kcet%2Fsitemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvenkatesh-kcet%2Fsitemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenkatesh-kcet%2Fsitemap/lists"}