Weave 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

Json5 Laravel Package

colinodell/json5

PHP JSON5 parser/decoder. Adds json5_decode() as a drop-in replacement for json_decode(), supporting comments, trailing commas, single quotes, and more. Always throws SyntaxError on parse failure. Includes a json5 CLI to convert JSON5 to JSON.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package remains suitable for human-readable configuration scenarios but now requires PHP 8.0+ due to dropped PHP 7.x support. Core integration limitations with Laravel's native config system persist, though parameter name changes don't alter this fundamental constraint.
Integration feasibility: Medium feasibility due to breaking changes. Composer installation remains straightforward, but existing code using renamed parameters ($source→$json, $options→flags) or SyntaxError constructor arguments ($linenumber→$lineNumber, $columnNumber→$column) requires refactoring. PHP 7.x environments cannot upgrade.
Technical risk: High. PHP 7.x incompatibility creates immediate upgrade barriers for legacy projects. Parameter name changes introduce runtime errors if not addressed during migration. Return type changes (mixed) may require type-checking adjustments in dependent code.
Key questions:

  • What is the current PHP version of the project?
  • Are there existing usages of the package's renamed parameters or SyntaxError constructor arguments?
  • Is Laravel version compatible with PHP 8.0+ requirements?

Integration Approach

Stack fit: Requires PHP

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.
encore2/laravel-admin2
cboxdk/laravel-console-kit
shapecode/doctrine-dbal-datetimeutc
gilads-otiannoh254/inertia-protocol
dakiquang/laravel-oauth-refresh-lock
woda/laravel-worktrees
dalefranks/ramasite
faghy/laracashbook
roundly-consulting/google-places-for-laravel
roundly-consulting/kubernetes-api-for-laravel
roundly-consulting/plausible-for-laravel
gvp/gvp-laravel-template
metasyncsite/laravel-metasync-client
roundly-consulting/onboarding-for-laravel
adachsoft/cli-process-tester
adachsoft/changelog-linter
adachsoft/collection
adachsoft/php-code-style
adachsoft/api-version-bundle
cgv/localized-resource