Download the PHP package virtualorz/sitemap without Composer

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

Usage

Use Laravel web route to generate sitemap structure, use for parent/child relation and backend left side menu for AdminLte

Install

composer require virtualorz/sitemap

Config

edit config/app.php

'providers' => [
    ...
    Virtualorz\Sitemap\SitemapServiceProvider::class
]

'aliases' => [
    ...
    'Sitemap' => Virtualorz\Sitemap\Facades\Sitemap::class,
]

Method

getTreeView
return an Array , the key is parent node name
getNaviPath($pageName = null)
return navipath node array,
if $pageName is null return the current page navi path,
if not return the assign page's navi path
getParents($pageName = null)
return parent node route item,
if $pageName is nul return the current page parent node,
if not return the assign page's parent node
getMenu($parmissionArray = null)
return left side menu structure Array,
if $parmissionArray is null return the full mene
if not return the node in $parmissionArray
routStruct($parent,$sitemap)
return an nested Array for root parent i $parent data from $sitemap,
the $sitemap paremeter is result from getTreeVIew method

Example for route/web.php

Route::get('/customer',
        [
            'as' => 'backend.customer.index' ,// user for id in sitemap
            'uses' => 'backend\CustomerController@index', //controller name
            'parent' => 'backend.index', //parent sitemap id
            'name' => 'Customer List', //customer name for this item
            'label' =>'Data Manage', //backend menu label text for this item
            'fa' => 'fa-database' //backend menu fa icon for this item
        ]);

Example for create tree view structure

$sitemap = Sitemap::getTreeView();
$sitemap = Sitemap::routStruct('root',$sitemap);

中文版本文件

Sitemap : 使用Laravel Route產生網站結構陣列


All versions of sitemap with dependencies

PHP Build Version
Package Version
No informations.
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 virtualorz/sitemap contains the following files

Loading the files please wait ....