Download the PHP package inc2734/wp-view-controller without Composer

On this page you can find all versions of the php package inc2734/wp-view-controller. 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 wp-view-controller

WP View Controller

CI Latest Stable Version License

Install

How to use

Directory structure

Layout template

The lyout template requires ``.

View templates

In singular page

Loading /templates/view/content-{post-type}.php for the view template. Loading /templates/view/content.php when /templates/view/content-{post-type}.php isn't exists.

In archive page

Loading /templates/view/archive-{post-type}.php for the view template. Loading /templates/view/archive.php when /templates/view/archive-{post-type}.php isn't exists.

Static view templates

Tries to load the view template according to the URL. For example when URL is http://example.com/foo/bar, tries to laod from /templates/static/foo/bar.php or /templates/static/foo/bar/index.php.

Using view controller

Template tags

\Inc2734\WP_View_Controller\Helper::get_template_part()

This method is an extension to get_template_part().

Filter hooks

inc2734_wp_view_controller_config_path

inc2734_wp_view_controller_pre_template_part_render

inc2734_wp_view_controller_template_part_render

inc2734_wp_view_controller_layout

inc2734_wp_view_controller_view

inc2734_wp_view_controller_config

inc2734_wp_view_controller_controller

inc2734_wp_view_controller_get_template_part_args

inc2734_wp_view_controller_template_part_root_hierarchy

inc2734_wp_view_controller_located_template_slug_fallback

inc2734_wp_view_controller_render_type

Action hooks

inc2734_wp_view_controller_get_templatepart<slug>-<name>

inc2734_wp_view_controller_get_templatepart<slug>

inc2734_wp_view_controller_get_template_part_pre_render

inc2734_wp_view_controller_get_template_part_post_render

inc2734_wp_view_controller_expand_get_template_part


All versions of wp-view-controller with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 inc2734/wp-view-controller contains the following files

Loading the files please wait ....