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 project or micro-package for “leanness” by ensuring common repo artifacts are excluded from release archives. Also creates, updates, and reformats .gitattributes export-ignore entries for lean distribution packages.

View on GitHub
Deep Wiki
Context7
v5.9.1

Changed

  • Improved the section grouping.
v5.9.0

Added

  • Added a new --group option to the reformat and update command. Closes #69.
  • Expanded the common glob preset patterns.
v5.8.6

Fixed

  • Fixed a bug where stale export-ignores are not removed.
v5.8.5

Fixed

  • Fixed a bug where the reformat header is added twice.
v5.8.4

Fixed

  • Fixed a bug where preceding slashes are not properly removed when reformatting.
v5.8.3

Added

  • Added a header output, to spread the lpv visibility, to the reformat command.
v5.8.2

Added

  • Added an --sort-alphabetically and --sort-from-directories-to-files option to the reformat command.
v5.8.1

Fixed

  • Improved the output of the reformat command. Preceding slashes are removed and directories are postfixed with a slash.
v5.8.0

Added

  • Added a reformat command to do opinionated reformatting of existing .gitattributes files.
v5.7.3

Changed

  • Replaced ergebnis/agent-detector with laravel/agent-detector.

Fixed

  • The preset glob patterns are sorted alphabetically to improve readability.
v5.7.2

Added

  • Expanded the common glob preset with AI-related preset patterns.
v5.7.1

Fixed

  • Updated symfony/* version constraints. Closes #66.
v5.7.0

Added

v5.6.1

Added

  • AI agentic runs are autodetected.
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 an 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 artefacts 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 an 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 .gitignored 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 caught 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 artefacts 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 artefacts 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 artefacts 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 autoconfiguration 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 artefacts 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 artefacts 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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai