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

Json Laravel Package

yiisoft/json

Yii JSON is a lightweight PHP library for encoding/decoding JSON with sensible defaults. It throws JsonException on errors, supports JsonSerializable, DateTimeInterface and SimpleXMLElement, and includes safe HTML encoding for embedding JSON in pages.

View on GitHub
Deep Wiki
Context7

yiisoft/json is a lightweight PHP library for encoding and decoding JSON with safer, more predictable behavior than native json_encode()/json_decode(). It provides sensible defaults and always throws \JsonException on errors, making JSON handling easier to reason about in production code.

  • Always throws \JsonException instead of returning false
  • Sensible default flags so you specify less boilerplate
  • HTML-safe JSON encoding via Json::htmlEncode()
  • Proper handling of JsonSerializable, DateTimeInterface, and SimpleXMLElement
  • Supports PHP 7.4–8.5 (requires JSON + SimpleXML extensions)
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