Download the PHP package lumenpress/routing without Composer

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

WordPress Routing

Build Status Total Downloads Latest Stable Version

The routing needs to be used with lumenpress/laravel or lumenpress/lumen.

Installation

Register the provider in bootstrap/app.php:

It should be noted that Laravel must also be registered in the bootstrap/app.php file, otherwise it will not work properly.

Usage

We must first get an instance of the WordPress router.

Or use the router service container as a facade.

Routing

As a facade.

Conditions

Route Parameters

template

Query Condition

function theme file
is_page_template($template) $template.php

Route Condition

Callback Arguments

page

Query Condition

function theme file
is_page() page.php
is_page($id) page-$id.php
is_page($slug) page-$slug.php

Route Condition

Callback Arguments

single

Query Condition

function theme file
is_single() single.php
is_singular($posttype) single-$posttype.php
is_singular($posttype) && is_single($slug) single-$posttype-$slug.php

Route Condition

Callback Arguments

singular

Query Condition

function theme file
is_singular() singular.php
is_singular($posttype) single-$posttype.php

Route Condition

Callback Arguments

attachment

Query Condition

function theme file
is_attachment() attachment.php

Route Condition

Callback Arguments

embed

Since 4.5

Query Condition

function theme file
is_embed() embed.php

Route Condition

Callback Arguments

archive

Query Condition

function theme file
is_archive() archive.php
is_post_type_archive($postType) archive-$postType.php

Route Condition

Callback Arguments

tax

Query Condition

function theme file
is_tax() taxonomy.php
is_tax($taxonomy) taxonomy-$taxonomy.php
is_tax($taxonomy, $term) taxonomy-$taxonomy-$term.php

Route Condition

Callback Arguments

category

Query Condition

function theme file
is_category() category.php
is_category($id) category-$id.php
is_category($slug) category-$slug.php

Route Condition

Callback Arguments

tag

Query Condition

function theme file
is_tag() tag.php
is_tag($id) tag-$id.php
is_tag($slug) tag-$slug.php

Route Condition

Callback Arguments

author

Query Condition

function theme file
is_author() author.php
is_author($id) author-$id.php
is_author($nicename) author-$nicename.php

Route Condition

Callback Arguments

date

Query Condition

function theme file
is_date() date.php

Route Condition

Callback Arguments

home

Query Condition

function theme file
is_home() home.php

Route Condition

front

Query Condition

function theme file
is_front_page() front_page.php

Route Condition

search

Query Condition

function theme file
is_search() search.php

Route Condition

404

Query Condition

function theme file
is_404() 404.php

Route Condition

Custom Route Condition


All versions of routing with dependencies

PHP Build Version
Package Version
Requires lumenpress/nimble Version ~0.1
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 lumenpress/routing contains the following files

Loading the files please wait ....