Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Lean Package Validator Laravel Package

stolt/lean-package-validator

CLI tool to validate a PHP project/micro-package for “leanness” by ensuring common repo artifacts aren’t shipped in release archives. Also creates and updates .gitattributes export-ignore entries to enforce lean release assets.

View on GitHub
Deep Wiki
Context7
v5.6.0

Removed

  • Removed support for PHP 8.1.

Changed

  • Migrated code style tooling to Mago.
v5.5.0

Added

  • Agentic-friendly output formatting via --agentic-run with JSON output for machine consumption. Closes #64.
v5.4.0

Added

  • New Homebrew formula and usage documentation. Closes #45.
  • New refresh command to update a present .lpv file with the latest preset glob patterns. Closes #63.
v5.3.3

Fixed

  • Updated the command used in the updating skill.
v5.3.2

Fixed

  • Moved skills directory for Boost inclusion.
v5.3.1

Fixed

  • Fixed changed test expectation.
  • Fixed preset for distributable AI skills.
v5.3.0

Added

  • Three new AI skills for validating, creating, and updating the package's .gitattributes file.
v5.2.4

Fixed

  • Non-standard (boolean) cast is deprecated in PHP 8.5, (bool) is used instead.
v5.2.3

Added

  • Further PHP preset expansion.
v5.2.2

Fixed

  • The complete directory path is used in user output. Closes #59.
v5.2.1

Fixed

  • The correct file HEADERS (generated|modified) are written.
v5.2.0

Added

  • New --dry-run option for the init command.
v5.1.0

Added

  • New --dry-run option for the update and create command.
v5.0.0

Added

  • New dedicated update and create commands. Closes #55.

Fixed

  • When using --stdin-input it can be configured via the available options. Closes #50.
v4.7.1

Fixed

  • Avoid duplicated headers. Closes #54.
v4.7.0

Added

  • New preset option for the validate command. Closes #53.
v4.6.0

Added

v4.5.0

Added

  • New initial Rust preset.
v4.4.6

Fixed

  • Ease the language-specific preset definition and maintenance. Closes #52.

Added

  • Further Go preset expansion.
v4.4.5

Added

  • Further Python preset expansion.
v4.4.4

Added

  • Further PHP preset expansion.
v4.4.3

Added

  • Further PHP preset expansion.
v4.4.2

Added

  • Further PHP preset expansion.
v4.4.1

Added

  • Further PHP preset expansion.
v4.4.0

Added

  • New stdin-input option. Closes #42.
v4.3.6

Added

  • Further PHP preset expansion.
v4.3.5

Fixed

  • Fix issue where no package name is set.
v4.3.4

Fixed

  • Check if given directory of the tree --dist-package command is a Git repository.
v4.3.3

Fixed

  • Replace the dependency on the Unix tree command. Closes #49.
v4.3.2

Added

  • The tree command with the --src option now excludes files from .gitignore and the .git directory.
v4.3.1

Added

  • The tree command defaults to the --dist-package option.

Fixed

  • A bug where the directory to operate on was incorrect.
v4.3.0

Added

  • New tree command, that displays the source and dist package structure. Closes #48.
v4.2.0

Added

  • Option to sort ignored artifacts from directories to files. Closes #30.
  • Further PHP preset expansion.
v4.1.1

Added

  • Further PHP preset expansion.
v4.1.0

Added

  • New --keep-readme and --keep-glob-pattern options. Closes #47.
v4.0.5

Added

  • Further PHP preset expansion.
v4.0.4

Added

  • Further PHP preset expansion.

Removed

  • Removed laminas/laminas-stdlib dependency.
v4.0.3

Added

  • Attested dist builds.
v4.0.2

Added

  • Further PHP preset expansion.

Fixed

  • Ignore global gitignore patterns.
v4.0.1

Added

  • Further PHP preset expansion.
v4.0.0

Fixed

  • Updated the symfony/console dependency.
  • Further PHP preset expansion.
v3.3.2

Fixed

  • Expands the PHP preset.
v3.3.1

Fixed

  • The header is written on existent .gitattributes file. Closes #44.
v3.3.0

Removed

  • Removed support for PHP 8.0.
v3.2.0

Added

  • New --preset option. Closes #43.

  • New --report-stale-export-ignores option. Closes #41.

v3.1.1

Fixed

  • Header in generated or modified .gitattributes file is set as a comment.
v3.1.0

Added

  • Global .gitignore'd files are excluded from validation. Closes #36.
  • Added --diff option to show differences between expected and actual .gitattributes content. Closes #39.
  • Added verbose output. Closes #37.

Fixed

  • Empty glob pattern is catched as invalid. Closes #38.
v3.0.1

Removed

  • Removed support for PHP 7.4.

Added

  • Header in generated or modified .gitattributes file.
v3.0.0

Removed

  • Removed support for PHP 7.3 and 7.2.

Added

  • Introduced GitHub Actions.
v2.1.0

Removed

  • Removed support for PHP 7.1.
v2.0.2
  • Added zend-stdlib glob fallback for alpine based systems.
v2.0.1
  • Upgraded development dependencies
  • Fixed appearing static analysis errors
v2.0.0

Removed

  • Removed support for PHP 5.6 and 7.0.. Closes #29.
v1.9.0

Added

  • Enabled distribution via PHAR. Closes #27.
v1.8.1

Fixed

  • Matched directories e.g. tests or specs are export-ignored only once. Closes #24.
v1.8.0

Added

  • Additional --align-export-ignores|-a option to align the export-ignores which improves readability. Closes #23.
  • Additional --enforce-alignment option to enforce that all export-ignores are aligned.
v1.7.3

Fixed

  • Fix dist file pattern to also match *.dist files.
v1.7.2

Fixed

  • Fix non existent export ignored artifacts are excluded from validation. Fixes #22.
v1.7.1

Fixed

  • Fix gitignored files with a pre- and postfixed directory separator are excluded from validation. Fixes #21.
v1.7.0

Added

  • Additional artifacts glob pattern expansion to match AppVeyor configuration files.
v1.6.0

Added

  • New init command to create a .lpv file with the default glob patterns. Closes #18.
v1.5.2

Added

  • Internal Composer scripts have a namespace.

Fixed

  • Fix gitignored files are excluded from validation. Fixes #17.
v1.5.1

Fixed

  • Fix missing export-ignore patterns on existing .gitattributes file with no export-ignore entries. Fixes #16.
v1.5.0

Added

  • New --keep-license option to allow license files in releases. Closes #15.
v1.4.0

Added

  • Additional artifacts glob pattern expansion to match CaptainHook configuration files. Closes #14.

Fixed

  • Fix missing .gitattributes export-ignore in suggested and generated .gitattributes file content. Closes #13.
v1.3.1

Fixed

  • Fix dependency constraint.
v1.3.0

Added

  • Leading slashes in export-ignore patterns are considered as a smell and raise a warning. Closes #4.
  • A missing text auto configuration is considered as a smell and raises a warning. Closes #12.
v1.2.0

Added

  • New --glob-pattern-file option to load custom glob patterns from a file. Closes #9.
v1.1.0

Added

  • Additional artifacts glob pattern expansion to match Phulp files.
  • New --enforce-strict-order option to enforce a strict order comparison of export-ignores in the .gitattributes file. Closes #6.
v1.0.6

Fixed

  • Fix present, invalid .gitattributes files are overwritable. Closes #8.
v1.0.5

Fixed

  • Fix expected and actual export-ignores comparison. Related to #3.
v1.0.4

Added

  • Additional artifacts glob pattern expansion to match Vagrant and Box files.

Fixed

  • Fix present .gitattributes files are really validated. Closes #3.
v1.0.3

Fixed

  • Fix directory argument usage and validation.
v1.0.2

Added

  • Additional validation of glob patterns injected via the --glob-pattern option. Closes #2.
v1.0.1

Fixed

  • Fix for autoloading in global installations.
v1.0.0
  • Initial release.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport