Download the PHP package wpfulcrum/template without Composer

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

Template Module

Build Status Latest Stable Version License

Empowering your WordPress plugin to load templates.

Does your plugin create a custom post type or taxonomy? Or maybe you want to add a page template into the page's template selector? The Fulcrum Template Module makes it easy for you.

Features

Installation

The best way to use this component is through Composer:

Dependencies

This module requires:

Configuration

There are 2 types of loaders, each requiring a separate configuration file in your plugin:

Template Loader Configuration

The following example is for a "Book" custom post type with a "Genre" taxonomy:

The above configuration tells the module that this plugin has the following template files that should be loaded when needed:

Admin (Back-end) Template Loader

When you're plugin needs to load custom page templates into the back-end, use the following configuration example:

The above configuration tells the module that the plugin has the following templates available for Pages:

What Happens?

When an author opens a page in the back-end admin area, the "Book Entry Template" is available for selection as the page's template. If that template is selected, the plugin's template file will load when that page is being rendered in the browser (on the front-end).

Making It Work

There are 2 ways to utilize this module:

  1. With the full Fulcrum plugin.
  2. Or on its own without Fulcrum.

With Fulcrum

In Fulcrum, your plugin is an Add-on. In your plugin's configuration file, you will have a parameter for the serviceProviders, where you list each of the service providers you want to use. In this case, you'll use the provider.template for the front-end loading and provider.adminTemplate for the back-end admin loading.

For example, using our configurations above, this would be the configuration:

Without Fulcrum

Without Fulcrum, you'll need to instantiate each of the Loaders.

For the front-end template loader, you would do the following:

For the back-end admin template loader, you would do the following:

Contributing

All feedback, bug reports, and pull requests are welcome.


All versions of template with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6|^7
wpfulcrum/config Version ^3
wpfulcrum/extender Version ^3
wpfulcrum/foundation Version ^3
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 wpfulcrum/template contains the following files

Loading the files please wait ....