Download the PHP package efabrica/phpstan-latte without Composer

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

PHPStan Latte extension

PHPStan extension to check compiled Latte templates in context of a Presenter or a Component etc. Templates are compiled to PHP code which is then analyzed with PHPStan rules according to a configured rule level and rules from loaded extensions.

The extension is based on Tomas Votruba's blog series and his packages symplify and reveal.

Features

Read How it works, when it doesn't, and troubleshooting

Installation

To use this extension, require it in Composer:

If you also install phpstan/extension-installer then you're all set!

Manual installation Add this line to your phpstan.neon:

It is recommended to use this extension with phpstan-nette extension for better analysis of templates.

Configuration

If analysis reports errors about missing context (variables/components, ...) set in external packages you need to set option latte.collectedPaths as descibed in Analyser configuration.

Annotations

There are cases that cannot be resolved automatically by static analysis.

In these cases annotations line @phpstan-latte-ignore or @phpstan-latte-var could be used to guide resolvers to analyse latte templates correctly.

How to use annotations

How to extend this extension

This extension supports only common built-in methods for resolving paths to latte files, collecting variables, components, forms etc. However, we know that in a wild there are applications which use their own methods for these purposes. That's why we create this extension extensible. See more about this topic here.

Development

Changelog

If you want to contribute your PR are welcomed. If you want to discuss your idea first then create issue.


Thank you for using this package. Let us know if it helped you or what could be improved.


All versions of phpstan-latte with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4 <8.4
ext-json Version *
phpstan/phpstan Version ^1.10.50
phpstan/phpstan-nette Version ^1.2.6
latte/latte Version ^2.11.6 | ^3.0.4
nette/utils Version ^3.2|^4.0
nette/finder Version ^2.5|^3.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 efabrica/phpstan-latte contains the following files

Loading the files please wait ....