Download the PHP package uzulla/phpstorm-inspect-code-cli-runner without Composer

On this page you can find all versions of the php package uzulla/phpstorm-inspect-code-cli-runner. 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 phpstorm-inspect-code-cli-runner

phpstorm-inspect-code-cli-runner

This package enables you to comfortably use PhpStorm as a CLI tool for static analysis.

Features

Installation

Usage

Arguments

Environment Configuration

You can configure PhpStorm binary paths using a .env file:

  1. Copy the .env.example file to .env in the project root:

  2. Edit the .env file with your specific paths:

When environment variables are set, you can omit the corresponding command-line options:

Example Usage

Creating a Simple Inspection Profile

If you don't have an existing inspection profile, you can create a simple one:

Save this to a file named inspection-profile.xml in your project directory.

Running the Inspection

You can run the inspection on your project's source code:

Self-Inspection Example

A good way to test the tool is to use it to inspect its own code:

Sample Output (Text Format)

When running the self-inspection example above, you'll get output similar to this:

This output shows various code quality issues that PhpStorm's inspection has found, such as:

Sample Output (Checkstyle Format)

You can also get the output in checkstyle format, which is useful for integration with CI tools:

Output:

The checkstyle format is particularly useful for integrating with CI/CD pipelines and other tools that can process this standard format.

Tips for Effective Usage

Customizing Inspection Profiles

For more comprehensive code quality checks, you can create a custom inspection profile in PhpStorm:

  1. Open your project in PhpStorm
  2. Go to Settings/Preferences → Editor → Inspections
  3. Configure the inspections you want to enable/disable
  4. Click the gear icon and select "Export" to save your profile as an XML file
  5. Use this exported file with the --profile option

Integrating with CI/CD

To integrate with CI/CD pipelines:

  1. Use the checkstyle output format (--format=checkstyle)
  2. Save the output to a file: php bin/phpstorm-inspect ... --format=checkstyle > phpstorm-inspection.xml
  3. Use a tool like checkstyle-formatter to convert the output to HTML or other formats
  4. Configure your CI system to fail the build if certain types or numbers of issues are found

Performance Considerations

License

MIT License (see LICENSE file)

This is a modernized version of shopsys/phpstorm-inspect updated for PHP 8.3.


All versions of phpstorm-inspect-code-cli-runner with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
symfony/console Version ^6.0
symfony/filesystem Version ^6.0
symfony/process Version ^6.0
symfony/dotenv Version ^6.0
arvenil/ninja-mutex Version ^0.6.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 uzulla/phpstorm-inspect-code-cli-runner contains the following files

Loading the files please wait ...