Download the PHP package smnandre/twigmetrics without Composer

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

Twig 🌿 Metrics

Analyze your Twig templates and get a clear picture of their most important metrics ---   ![PHP Version](https://img.shields.io/badge/PHP-8.3+-2e7d32?logoColor=6AB76E&labelColor=010)   ![CI](https://img.shields.io/github/actions/workflow/status/smnandre/twigmetrics/CI.yaml?branch=main&label=Tests&logoColor=white&logoSize=auto&labelColor=010&color=388e3c)   ![Release](https://img.shields.io/github/v/release/smnandre/twigmetrics?label=Stable&logoColor=white&logoSize=auto&labelColor=010&color=43a047)   [![GitHub Sponsors](https://img.shields.io/github/sponsors/smnandre?logo=github-sponsors&logoColor=66bb6a&logoSize=auto&label=%20Sponsor&labelColor=010&color=a5d6a7)](https://github.com/sponsors/smnandre)   ![License](https://img.shields.io/github/license/smnandre/twigmetrics?label=License&logoColor=white&logoSize=auto&labelColor=010&color=2e7d32)

[!WARNING] TwigMetrics is in active development. Use with caution, and expect things to change quickly.

This project is a melting pot of code or ideas I had while working on various Symfony projects. I'm releasing it as a standalone tool in case it can be useful to others.

Depending on the level of interest and feedback, I have plans to expand it into a more reliable and feature-rich tool.

What it does

TwigMetrics scans a directory of .twig templates and produces a full report:

See examples of each section in the Usage section below.

Installation

Global (soon)

[!TIP] A PHAR release is planned, so you’ll be able to install it globally.

Composer

From source

Usage

To analyze a directory of Twig templates, run:

Twig Metrics

Template Files

Logical Complexity

Twig Callables

Code Style

Architecture

Maintainability

Contributing

Feedback, issues, and pull requests are very welcome!

License

Twig Metrics is licensed under the MIT License. See the LICENSE file for details.


All versions of twigmetrics with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
symfony/console Version ^7.3 || ^8.0
symfony/finder Version ^7.3 || ^8.0
twig/twig Version ^3.21
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 smnandre/twigmetrics contains the following files

Loading the files please wait ....