Download the PHP package algolia/magento2-tools without Composer

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

The perfect starting point to analyse the PHP quality of our Algolia Magento 2 extension

💡 Getting Started

First, install globally the magento2-tools:

Make sure to place Composer's system-wide vendor bin directory in your $PATH so the magento2-tool executable can be located by your system.

Finally, you can launch the quality tools with:

The second argument is optional. If omitted, the scripts will attempt to auto-resolve the vendor bin directory by checking for a local vendor/bin/ install (e.g. after running composer install in the package directory) and then falling back to the global Composer vendor bin. If neither is found, the tools are expected to be on your $PATH.

Here is the list of available commands:

Optional patch: bitexpert/phpstan-magento autoloader collision

Under specific conditions (PHPStan parallel-worker mode with a warm cache, certain symlinked install layouts), bitexpert/phpstan-magento's Extension*Autoloader classes can collide with phpstan/phpstan-phpunit's MockObjectTypeNodeResolverExtension. Symptoms include a hard ExtensionInterfaceAutoloader.php line 93 crash or silent false-positive return statement is missing errors. Tracked upstream in bitExpert/phpstan-magento#297.

magento2-analyse mitigates the most common trigger automatically, so most users will never see this. Only apply the patch below if you actually encounter the crash or false positives.

This package ships patches/bitexpert-phpstan-magento-skip-phpstan-namespace.patch, which makes both autoloaders skip classes in the PHPStan\ namespace. Apply it manually against your global Composer install:

If the patch reports "Reversed (or previously applied) patch detected" it has already been applied; answer n to skip. The patch needs to be reapplied after every composer global update of algolia/magento2-tools. If patch fails for any other reason, bitexpert/phpstan-magento has been updated and the patch needs revisiting.

Development

When working on this repository directly (rather than as a globally-installed package), run composer install to populate vendor/, then apply the bitexpert patch via the bundled Composer script:

composer dev:patch is idempotent: it greps for the patch marker first and prints Patch already applied. if the local vendor is up to date, otherwise it runs patch(1) against vendor/bitexpert/phpstan-magento. Re-run it any time bitexpert/phpstan-magento is reinstalled (e.g. after composer update).

The script only runs when invoked manually on this repository - it is not registered against any Composer event and has no effect when this package is installed as a dependency.

Release process

Developers will get the new version via the auto-update mechanism of this tool.

📄 License

magento2-tools is an open-sourced software licensed under the MIT license.


All versions of magento2-tools with dependencies

PHP Build Version
Package Version
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 algolia/magento2-tools contains the following files

Loading the files please wait ...