Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
This package has been abandoned. Use larastan/larastan instead.
Generated on May 24, 2024 via composer

nunomaduro/larastan 2.3.2

Larastan - Discover bugs in your code without running it. A phpstan/phpstan wrapper for Laravel
Package summary
Share
2
issues
2
high severity
license
1
meta
1
3
licenses
53
MIT
2
BSD-3-Clause
1
GPL-2.0-or-later
Package created
5 Jul 2018
Version published
29 Dec 2022
Maintainers
1
Total deps
56
Direct deps
10
License
MIT

Issues

2

2 high severity issues

high
Recommendation: Validate that the package complies with your license policy
via: phpmyadmin/sql-parser@5.9.0
via: nunomaduro/larastan@2.3.2
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
53 Packages, Including:
brick/math@0.11.0
carbonphp/carbon-doctrine-types@3.2.0
doctrine/inflector@2.0.10
fruitcake/php-cors@v1.3.0
guzzlehttp/uri-template@v1.0.3
illuminate/bus@v9.52.16
illuminate/collections@v9.52.16
illuminate/conditionable@v9.52.16
illuminate/console@v9.52.16
illuminate/container@v9.52.16
illuminate/contracts@v9.52.16
illuminate/database@v9.52.16
illuminate/events@v9.52.16
illuminate/filesystem@v9.52.16
illuminate/http@v9.52.16
illuminate/macroable@v9.52.16
illuminate/pipeline@v9.52.16
illuminate/session@v9.52.16
illuminate/support@v9.52.16
illuminate/view@v9.52.16
nesbot/carbon@2.72.3
nunomaduro/larastan@2.3.2
nunomaduro/termwind@v1.15.1
phpstan/phpstan@1.11.1
psr/clock@1.0.0
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/log@3.0.0
psr/simple-cache@3.0.0
symfony/console@v6.4.7
symfony/deprecation-contracts@v3.5.0
symfony/error-handler@v7.0.7
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/finder@v6.4.7
symfony/http-foundation@v6.4.7
symfony/http-kernel@v6.4.7
symfony/mime@v6.4.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-idn@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php72@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
symfony/process@v6.4.7
symfony/service-contracts@v3.5.0
symfony/string@v7.0.7
symfony/translation@v6.4.7

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
hamcrest/hamcrest-php@v2.0.1
mockery/mockery@1.6.12

GNU General Public License v2.0 or later

Strongly Protective
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
phpmyadmin/sql-parser@5.9.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

10
All Dependencies CSV
β“˜ This is a list of nunomaduro/larastan 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
illuminate/consolev9.52.1662.17 kBMIT
prod dev
illuminate/containerv9.52.1613.02 kBMIT
prod
illuminate/contractsv9.52.1667.37 kBMIT
prod
illuminate/databasev9.52.16313.5 kBMIT
prod
illuminate/httpv9.52.1655.31 kBMIT
prod
illuminate/pipelinev9.52.164.42 kBMIT
prod
illuminate/supportv9.52.16102.2 kBMIT
prod dev
mockery/mockery1.6.12-BSD-3-Clause
prod
phpmyadmin/sql-parser5.9.01.5 MBGPL-2.0-or-later
prod
1
phpstan/phpstan1.11.1-MIT
prod dev

Visualizations

Frequently Asked Questions

What does nunomaduro/larastan do?

Nunomaduro/larastan is a powerful tool that can be used to identify errors in your Laravel code without actually running the code. Acting as a wrapper for PHPStan, larastan focuses on analyzing your code to uncover potential issues before you even write tests for it. By incorporating static typing into Laravel, the tool aids in improving your code's quality and the overall productivity of the developer. It is capable of catching entire classes of bugs, uncovering hidden errors in your codebase, and supports most of Laravel's magic.

How do you use nunomaduro/larastan?

In order to use nunomaduro/larastan, you should first install the package using Composer as a development dependency. Here's a simple example of how you can do it:

composer require nunomaduro/larastan:^2.0 --dev

After this, you need to create a phpstan.neon or phpstan.neon.dist file in your project's root directory with configurations as shown below:

includes:
    - ./vendor/nunomaduro/larastan/extension.neon

parameters:
    paths:
        - app/
    level: 5

You can then start analyzing your code using the phpstan console command:

./vendor/bin/phpstan analyse

If you encounter a memory error, you can specify a memory limit to fix the issue:

./vendor/bin/phpstan analyse --memory-limit=2G

In addition to this basic usage, larastan provides ways to ignore specific errors and set up a baseline file for large code bases where fixing all errors is time-consuming.

Where are the nunomaduro/larastan docs?

The comprehensive documentation for nunomaduro/larastan is available directly in the GitHub repository. This includes details on configurable rules, features, custom PHPDoc types, custom config parameters, and common errors to ignore. For more in-depth information, you can refer to the official PHPStan documentation.