Download the PHP package moca-nz/craft-template-paths without Composer

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

Stable Version Total Downloads

Template Paths Plugin for Craft CMS

See which Twig template rendered every part of your page.

Template Paths is a free plugin for Craft CMS that marks up your rendered HTML with comments naming the template, block and macro responsible for each region of the page. When you are looking at a component in the browser and cannot tell which of forty includes produced it, view source and the answer is right there.

It runs in devMode only, and adds nothing at all to your site anywhere else.

There is nothing to learn and nothing to switch on. Install it, and the comments are there.

Requirements

This plugin requires Craft CMS 5.5.0 or later, and PHP 8.2 or later.

Installation

To install the plugin, search for "Template Paths" in the Craft Plugin Store, or install manually using composer.

Usage

Load any front-end page with devMode on and view the page source.

The control panel is never touched, and neither are string templates such as SEO titles or entry title formats.

Settings

There is one setting, and it is off by default. To restrict the comments to logged-in users, copy the plugin's config.php into your project as config/template-paths.php:

The value may also be an environment variable, for example '$TEMPLATE_PATHS_REQUIRE_LOGIN'.

This setting is read when Twig compiles a template rather than on every request, so after changing it you need to clear the compiled templates:

That is also the trade: while the restriction is off, the compiled templates contain no check at all, so it costs nothing per request instead of running for every comment on every page.

Caveats

License

This plugin is licensed for free under the MIT License.


Created by MOCA.


All versions of craft-template-paths with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
craftcms/cms Version ^5.5.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 moca-nz/craft-template-paths contains the following files

Loading the files please wait ...