Download the PHP package fayyaztech/sitemap-generator without Composer

On this page you can find all versions of the php package fayyaztech/sitemap-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sitemap-generator

PHP Sitemap Generator

Description:

The PHP Sitemap Generator is a versatile and easy-to-use tool that empowers developers to effortlessly create sitemaps for their websites. With support for various sitemap formats, including XML, ROR, HTML, and URLLIST, this library simplifies the process of generating essential files to enhance search engine optimization (SEO) and ensure efficient indexing of web content.

Key Features:

Requirements:

Usage:

Installation:

Constructor Parameters:

The SitemapGenerator class constructor accepts four optional parameters:

  1. $changeFrequency (string): Specifies how frequently the content at the URLs is likely to change. Default is ChangeFrequency::DAILY. Available options are:

    • ChangeFrequency::DAILY
    • ChangeFrequency::WEEKLY
    • ChangeFrequency::MONTHLY
    • ChangeFrequency::YEARLY
  2. $domain (string): The domain for which the sitemap is being generated. If not provided, it defaults to the current domain (or localhost if unavailable).

Example Usage:

Method Details:

  1. saveToSitemap(string $filePath = '.')
    Generates an XML sitemap and saves it to the specified directory. The sitemap includes:

    • URLs collected from the domain.
    • Last modified date (default: current date).
    • Change frequency (e.g., daily, weekly).
    • Priority (default: 0.8).
  2. saveToRor(string $filePath = '.')
    Generates a ROR (RSS-based) sitemap and saves it to the specified directory. The ROR sitemap includes:

    • URLs collected from the domain.
    • Metadata such as title and description extracted from the URLs.
  3. saveToHtmlSitemap(string $filePath = '.')
    Generates a human-readable HTML sitemap and saves it to the specified directory. The HTML sitemap includes:

    • A list of URLs with clickable links.
    • The total number of pages.
    • The last updated date.
  4. saveToUrlList(string $filePath = '.')
    Generates a plain-text file containing a list of URLs and saves it to the specified directory. Each URL is listed on a new line.

License:

This project is released under the MIT License, offering flexibility and ease of use for developers while requiring proper attribution.

Contributing:

Contributions and feedback are welcome! To contribute:

  1. Fork the repository on GitHub.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and ensure the code adheres to the project's coding standards.
  4. Write tests for your changes, if applicable.
  5. Submit a pull request with a clear description of your changes.

For major changes, please open an issue first to discuss your ideas.

Links:

Begin enhancing your website's discoverability and SEO with the PHP Sitemap Generator today!

Author:


All versions of sitemap-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-dom Version *
ext-simplexml Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fayyaztech/sitemap-generator contains the following files

Loading the files please wait ...