Download the PHP package friendsoftypo3/phpstan-typo3 without Composer

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

TYPO3 extension for PHPStan

TYPO3 CMS class reflection extension for PHPStan & framework-specific rules

This extension provides the following features:

Details on GeneralUtility::makeInstance() Dynamic return types are returned for: * `GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class)` * `GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler')` * `GeneralUtility::makeInstance(self::class)` * `GeneralUtility::makeInstance(static::class)`
Details on ObjectManagerInterface::get() and ObjectManager::get() Dynamic return types are returned for: * `ObjectManager->get(\TYPO3\CMS\Core\DataHandling\DataHandler::class)` * `ObjectManager->get('TYPO3\\CMS\\Core\\DataHandling\\DataHandler')` * `ObjectManager->get(self::class)` * `ObjectManager->get(static::class)`

Installation & Configuration

To use this extension, require it in Composer:

Once installed, put this into your phpstan.neon config:

FAQ

I found this extension and the one from Sascha (saschaegerer/phpstan-typo3). Why are there two extensions and which should I use?

Well, this package has one specific purpose. It's made to help making the TYPO3 core phpstan max level compatible. To achieve this, the core team needs to be able to have its own extension which can be quickly adjusted as soon as the core itself changes. If for example, a new core version is released, the core team can quickly raise the dependency constraints for typo3/cms-core and typo3/cms-extbase which cannot be done when working with Sascha's package.

Also, Sascha's package contains dynamic return type providers that are not needed (yet) to make the core more compatible with phpstan.

To sum it all up: There is no competition between both extensions and this extension should not be used by users but only by the TYPO3 core.


All versions of phpstan-typo3 with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0 || ^8.1
phpstan/phpstan Version ^0.12.99 || ^1.2.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 friendsoftypo3/phpstan-typo3 contains the following files

Loading the files please wait ....