{"id":37009362,"url":"https://github.com/rapidez/sitemap","last_synced_at":"2026-01-14T00:53:15.936Z","repository":{"id":260652017,"uuid":"881294106","full_name":"rapidez/sitemap","owner":"rapidez","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-05T11:20:15.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-27T23:59:10.453Z","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":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rapidez.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2024-10-31T09:33:25.000Z","updated_at":"2025-06-05T11:20:16.000Z","dependencies_parsed_at":"2024-11-01T16:26:56.267Z","dependency_job_id":"51d225d2-991f-4ee1-ac99-447a09d9b345","html_url":"https://github.com/rapidez/sitemap","commit_stats":null,"previous_names":["rapidez/sitemap"],"tags_count":3,"template":false,"template_full_name":"rapidez/package-template","purl":"pkg:github/rapidez/sitemap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidez%2Fsitemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidez%2Fsitemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidez%2Fsitemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidez%2Fsitemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rapidez","download_url":"https://codeload.github.com/rapidez/sitemap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidez%2Fsitemap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-14T00:53:15.839Z","updated_at":"2026-01-14T00:53:15.919Z","avatar_url":"https://github.com/rapidez.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rapidez sitemap\n\nRapidez sitemap index through Eventy filters\n\n## Installation\n\n```\ncomposer require rapidez/sitemap\n```\n\n## Configuration\n\nYou can publish the configuration file with:\n```bash\nphp artisan vendor:publish --tag=config --provider=\"Rapidez\\Sitemap\\SitemapServiceProvider\"\n```\n\nThis will create a `config/rapidez-sitemap.php` file where you can configure:\n- `disk`: The Laravel filesystem disk to use (defaults to 'public')\n- `path`: The path within the disk where sitemaps will be stored (defaults to root)\n\nMake sure the specified disk is properly configured in your application's `config/filesystems.php`.\n\n## Views\n\nYou can publish the views with:\n```\nphp artisan vendor:publish --tag=rapidez-sitemap-views\n```\n\n## Sitemap Generation\n\nTo generate the sitemap manually, use:\n```bash\nphp artisan rapidez:sitemap:generate\n```\n\nThis command will generate `sitemap.xml` for the default store and `sitemap_{store_id}.xml` for additional stores in your configured storage location.\n\nIf you'd like to schedule the sitemap generation you can add the `rapidez:sitemap:generate` command in `routes/console.php`, for more information see [Task Scheduling](https://laravel.com/docs/11.x/scheduling)\n\n```php\nSchedule::command('rapidez:sitemap:generate')-\u003etwiceDaily(0, 12);\n```\n\n## Hooking into the Generation Action\n\nWhen the `rapidez:sitemap:generate` command runs, an Eventy action `rapidez.sitemap.generate` is triggered.\n\nYou can hook into this generation process by adding an action in the `boot` method of your service provider:\n```php\nEventy::addAction('rapidez.sitemap.generate', fn() =\u003e DoMagicHere(), 20, 1);\n```\n\n## Adding Additional Sitemap Indexes with Eventy\n\nIf you have additional indexes, such as CMS pages or other custom routes, you can dynamically add them to your sitemap index based on the Store ID using the `rapidez.site.{storeId}` filter provided by Eventy.\n\nTo do this, simply add the following code to the appropriate place in your application (e.g., in a service provider or a dedicated sitemap configuration file):  \n\n```php\nuse TorMorten\\Eventy\\Facades\\Eventy;\n\nEventy::addFilter('rapidez.sitemap.{storeId}', function ($sitemaps) {\n    // Add your custom sitemap URL here\n    $sitemaps[] = [\n        'url' =\u003e 'your-custom-sitemap.xml',\n        'lastmod' =\u003e now()-\u003etoDateString(),\n    ];\n    \n    return $sitemaps;\n}, 20, 1);\n```\n\n## License\n\nGNU General Public License v3. Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidez%2Fsitemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapidez%2Fsitemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidez%2Fsitemap/lists"}