icamys / php-sitemap-generator

A simple PHP sitemap generator.
MIT License
168 stars 65 forks source link

Submit existing sitemap #36

Open goldingdamien opened 2 years ago

goldingdamien commented 2 years ago

Is there a way of submitting an existing(just pass in filename or content as string) sitemap?

If so, please provide an example.

icamys commented 1 year ago

Hi there. Starting from version 5.0.0 this library supports submitting generated sitemaps only to Yandex, as the rest of the search engines have deprecated their ping endpoints. The submission is performed by sending a POST request to a search engine endpoint. See submitSitemap() for implementation.