Download the PHP package aklump/visual-sitemap without Composer

On this page you can find all versions of the php package aklump/visual-sitemap. 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 visual-sitemap

Visual Sitemap

Summary

Using a very simple JSON file schema to define the structure of your website, this project uses that structure to generate a beautiful, visual HTML sitemap. The final document has all icons and CSS embedded in it and can be shared with other team members easily. The primary fonts use Google Fonts and require internet access, however the fallback fonts work just fine offline.

Take a look at example.json to see what a definition file looks like.

Open example.html in a browser to see the example visual sitemap.

Visit https://aklump.github.io/visual_sitemap for full documentation.

Quick Start

Requirements

  1. You will need Composer for installing.
  2. You will need a text editor to edit JSON files.
  3. You will need a command line terminal to generate the map.

Contributing

If you find this project useful... please consider making a donation.

Installation

Install Globally Using Composer

To be able to use the commands from any directory in your CLI you may want to install this globally.

composer global require aklump/visual-sitemap

Make sure you have the composer bin dir in your PATH. The default value is ~/.composer/vendor/bin, but you can check the value that you need to use by running composer global config bin-dir --absolute.

To check this you must open _~/.bashprofile (or ~/.bashrc); you're looking for a line that looks like the following, if you can't find, you'll need to add it.

export PATH=~/.composer/vendor/bin:$PATH

Install Per Project Using Composer

cd /your/project/folder
composer require aklump/visual-sitemap

Testing installation

  1. Test your installation by typing vismap in your terminal, you should see:

    Argument 1 must point to a configuration json file.

Usage

  1. Create the configuration JSON file following the schema. Use example.json and _quickstart.json as guides. If you wish to use the CLI to create the file (which copies and renames _quickstart.json) do the following:

    cd /the/dir/to/contain/the/config
    vismap FILENAME.json -c
  2. You can also refer to schema.json, which uses JSON Schema to define the format of the configuration file.
  3. Generate an HTML version once by running the following command: vismap sitemap.json. sitemap.html will be created. If sitemap.html already exists, you will need to use the -f flag to overwrite it, e.g. vismap sitemap.json -f.
  4. A file watch command is availabe. As you make changes to the JSON file, the sitemap will automatically be re-generated. Use vismapwatch sitemap.json for this. Again, use the -f flag if the HTML file already exists.
  5. Use the --out={filepath} to control the output location relative to the source file. You may also use an absolute path beginning with a /.

As JSON

You can export your sitemap as JSON using --format=json. Note: the extension used will be .compiled.json

vismap example.json -f --format=json

As Text List

You can export a list of sections and titles using --format=list

Best Practices

  1. Do not change the order of items in the JSON file, unless you intend to change the section numbers associated with the items. That is to say, always append new items to the end of a section array. Failure to follow this point will result in your section numbers being reassigned to different sections.

All versions of visual-sitemap with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
twig/twig Version ^1.35
jasonlewis/resource-watcher Version ^1.2
justinrainbow/json-schema Version ^5.2
aklump/data Version ^0.0.28
aklump/loft-lib Version ^1.0
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 aklump/visual-sitemap contains the following files

Loading the files please wait ....