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

Simple Normalizer Laravel Package

21torr/simple-normalizer

View on GitHub
Deep Wiki
Context7
1.6.0

:gift: New Features

  • Add ContextBag as base helper for using normalizer context.

:sparkles: Improvements

  • Reduce normalization overhead by tracking the debug stack internally across recursion instead of mutating it in context on each nested value.
  • Cache Doctrine-normalized class names in SimpleNormalizer to avoid repeated metadata lookups for the same object type.
  • Add test coverage to ensure class-name normalization is cached across repeated normalization calls.
  • Optimize ValidJsonVerifier by reusing a mutable path stack during traversal instead of allocating a new path array for each nested element.
  • Add dedicated verifier tests for deep-path reporting and first-invalid-element detection.
  • Optimize empty stdClass detection by using an (array) cast check instead of get_object_vars().
  • Add a default max-depth guard (128) for normalization and JSON verification to mitigate deep-nesting DoS risk.
  • Add stack trace to all relevant exceptions as getter.
  • Add stack trace to NormalizationFailedExceptions thrown in custom object normalizers.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.5.1...1.6.0

1.5.1

:sparkles: Improvements

  • Support Symfony v8+

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.5.0...1.5.1

1.5.0

:gift: New Features

  • Add normalization stack for better error reporting.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.4.1...1.5.0

1.4.1

:sparkles: Improvements

  • Avoid using deprecated Doctrine internals when resolving class names.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.4.0...1.4.1

1.4.0

:gift: New Features

  • Add ValidJsonVerifier, that checks, that every normalizer correctly generated JSON-compatible values.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.3.2...1.4.0

1.3.2

:sparkles: Improvements

  • Allow normalizing empty stdClass.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.3.1...1.3.2

1.3.1

:sparkles: Improvements

  • Make SimpleNormalizer non-readonly, to allow it to be mocked.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.3.0...1.3.1

1.3.0

:gift: New Features

  • Make SimpleNormalizer extendable (for testing).

:sparkles: Improvements

  • Make SimpleNormalizer readonly.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.2.2...1.3.0

1.2.2

:sparkles: Improvements

  • Make SimpleNormalizer::normalizeArray public.

What's Changed

New Contributors

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.2.1...1.2.2

1.2.1

:sparkles: Improvements

  • Allow Symfony v7.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.2.0...1.2.1

1.2.0

:gift: New Features

  • Add SimpleNormalizer::normalizeMap().
  • Add helper VO ValueWithContext.

:sparkles: Improvements

  • Require PHP 8.3.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.1.1...1.2.0

1.1.1

:bug: Bug Fixes

  • Move test trait to published namespace.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.1.0...1.1.1

1.1.0

:gift: New Features

  • Add public helper trait SimpleNormalizerTestTrait.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.0.1...1.1.0

1.0.1

:sparkles: Improvements

  • Add generic NormalizationFailedException for usage inside your normalizers.

What's Changed

Full Changelog: https://github.com/21TORR/SimpleNormalizer/compare/1.0.0...1.0.1

1.0.0

Initial release \o/

What's Changed

New Contributors

Full Changelog: https://github.com/21TORR/simple-normalizer/commits/1.0.0

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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity