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

Diff Laravel Package

sebastian/diff

Standalone PHP diff component extracted from PHPUnit. Generate unified or strict unified diffs between strings, output only changed lines, or plug in custom output builders. Also parse unified diffs into an object graph for further processing.

View on GitHub
Deep Wiki
Context7
8.3.0

Added

  • #136: UnifiedDiffOutputBuilder now accepts a fourth $emitNoLineEndEofWarning constructor parameter (default true) to suppress the \ No newline at end of file marker for use cases such as PHPUnit comparison failures that are not related to files
  • #136: StrictUnifiedDiffOutputBuilder now accepts the options addLineNumbers, emitDiffLineEndWarning, emitNoLineEndEofWarning, and header

Changed

  • #136: UnifiedDiffOutputBuilder now returns an empty string when no difference is detected (previously: returned the header)
  • #136: UnifiedDiffOutputBuilder::writeHunk() now writes the actual \ No newline at end of file marker text (previously: wrote only a line break) and silently skips diff entries with unknown types

Deprecated

  • The SebastianBergmann\Diff\LongestCommonSubsequenceCalculator interface, its two implementations SebastianBergmann\Diff\TimeEfficientLongestCommonSubsequenceCalculator and SebastianBergmann\Diff\MemoryEfficientLongestCommonSubsequenceCalculator, and the $lcs parameter of SebastianBergmann\Diff\Differ::diff() and SebastianBergmann\Diff\Differ::diffToArray() are now deprecated; do not pass the $lcs parameter any more in preparation for the removal of these symbols and this parameter, respectively
8.2.1

Changed

  • #136: Reverted changes introduced in version 8.2.0
8.2.0

Changed

  • #136: Align UnifiedDiffOutputBuilder behavior with StrictUnifiedDiffOutputBuilder
8.1.0

Added

  • #135: Add $contextLines constructor parameter on UnifiedDiffOutputBuilder
8.0.0

Removed

  • This component is no longer supported on PHP 8.3
7.0.0

Removed

  • This component is no longer supported on PHP 8.3
6.0.2

Changed

  • This project now uses PHPStan instead of Psalm for static analysis
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.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
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