iqrf/phpstan-config

v0.1.0 2024-11-16 18:57 UTC

This package is auto-updated.

Last update: 2024-11-18 23:09:15 UTC


README

Build Status Packagist Version Packagist Downloads Apache License

PHPStan configuration for our PHP projects.

Requires PHP 8.1 or higher.

Inspirited by contributte/phpstan licensed under MIT.

Installation

Install the latest version of iqrf/phpstan-config using Composer.

composer require --dev iqrf/phpstan-config

Usage

Create a phpstan.neon file in the root of your project with the following content:

includes:
  - vendor/iqrf/phpstan-config/phpstan.neon

Run PHPStan with the following command:

vendor/bin/phpstan src

License

This project is licensed under Apache License 2.0:

Copyright 2024 MICRORISC s.r.o.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.