Download the PHP package stickee/larastan-config without Composer

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

stickee Larastan config

Provides a Larastan config for stickee projects.

Larastan is a PHPStan wrapper for Laravel.

It is ran by using the phpstan command and so will be referred to as PHPStan from now on.

Installation

You must commit the phpstan.dist.neon config file.

Setup

See the upgrade guide on PHPStan for a Rector rule that should be run before using this config.

Usage

You should always analyse the whole project.

Overrides

You may override any of the settings by editing the phpstan.dist.neon file.

The options are available at https://phpstan.org/config-reference.

Baseline

It would be a pain to add PHPStan to your project and have to fix all the existing errors before you can start using it. For this reason you can generate a "baseline" with this command:

and commit the new phpstan-baseline.neon file.

This means PHPStan will ignore any errors in this file so you can use PHPStan to check for errors in any new code you add.

If you get any free time you can refer to this file for code that should be fixed and regenerate the baseline (with the same command) afterwards.

CI

An example GitHub actions workflow is included at /dist/.github/workflows/phpstan.yaml.

It will run PHPStan against a PR as a "check" and output any errors it finds against the commit that failed.

The action first checks if any PHP files have been changed and if it needs to run at all. This is because PHPStan must analyse all of the application code at once and therefore takes a bit of time, so it's good to skip it if we can.

The action refers to a CI config at /dist/.github/workflows/phpstan.ci.neon (that you can copy into the root of your project) which includes the original config and also ignores unmatched ignored errors to keep the check clean of these errors.

Problems running PHPStan

The following are some of the easily fixable problems you may run into using PHPStan and Larastan:

Access to an undefined property

There is a guide on the PHPStan blog that contains suggestions for fixing this.


All versions of larastan-config with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ekino/phpstan-banned-code Version ^3.0
larastan/larastan Version ^3.0.2
phpstan/phpstan-mockery Version ^2.0
phpstan/phpstan-deprecation-rules Version ^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 stickee/larastan-config contains the following files

Loading the files please wait ....