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

Neon Laravel Package

nette/neon

NEON is Nette’s human-friendly data serialization format and parser for PHP. It offers a clean syntax for configuration files, supports comments, multiline strings and typed values, and converts NEON to/from PHP arrays and objects with reliable error reporting.

View on GitHub
Deep Wiki
Context7
v3.4.8
  • More precise phpDoc types across the codebase – better autocompletion and stricter static analysis
  • Improved phpDoc descriptions for the public API
v3.4.7
  • Encoder: invalid UTF-8 sequences are replaced with U+FFFD #76
  • improved neon-lint
v3.4.6
  • fixed mixed indents in block strings (#78)
  • Nodes: removes null nodes after traversal
  • adjusted exception message
v3.4.5
  • support for PHP 8.5
  • optimized global function calls
v3.4.4
  • support for PHP 8.4
  • Encoder: fixed encoding of control characters #72
v3.3.4
  • support for PHP 8.4
  • Encoder: fixed encoding of control characters #72
  • Neon::decodeFile() is atomic
v3.4.3
  • Decoder: fixed JSON parsing with \n before comma
  • Decoder: big integers are decoded as strings #9
v3.4.1
  • support for PHP 8.3
  • syntax: allowed tab as separator for dashed-blocks
  • INF & NAN encoding throws an exception #69
v3.4.0
  • requires PHP 8.0
  • removed deprecated syntax on/off & \x** (BC break)
v3.3.3
  • Encoder: uses more readable single quote strings
  • Node::getSubNodes() changed to IteratorAggregate generator,
  • Traverser: added DontTraverseChildren & StopTraversal, $enter and $leave callbacks
  • Node: added $startLine & $endLine
  • Node: startPos & endPos renamed to startTokenPos & endTokenPos
  • cs, constants are PascalCase
v3.3.2
  • ArrayNode::$indentation usage fixed #63
  • ArrayNode split to BlockArrayNode & InlineArrayNode
  • InlineArrayNode: added property $bracket
  • fixed tests
v3.3.1
  • added Neon linter
  • added Neon::decodeFile()
  • Neon::decode() no longer removes BOM (BC break)
  • Neon::encode() $flags replaced with parameters
  • Neon, Encoder: added $indentation
  • Traverser: can return different nodes
v3.3.0
  • completely rewritten parser
  • generates AST
  • added Traverser
  • encoder uses AST
v3.2.2
  • uses mb_string when iconv is not available
  • improved PHP doc
v3.2.1
  • Decoder: fixed \s in unicode, replaced with \n\t_
  • Encoder: removed duplicated code (#54)

For the details you can have a look at the diff.

v3.2.0
  • now supports only UTF-8 mode and throws exception on invalid input (BC break)
  • syntax \xAA is deprecated in favor of \uAAAA (BC break)
  • Encoder: encodes multiline strings in """ format
v3.1.2
  • Encoder: correctly encodes numeric strings
  • Decoder: date-time is not decoded in keys #48

For the details you can have a look at the diff.

v3.0.1
  • Encoder: correctly encodes numeric strings
  • Decoder: date-time is not decoded in keys #48
  • Encoder: json_encode() error is escalated to exception

For the details you can have a look at the diff.

v3.1.1
  • Encoder: json_encode() error is escalated to exception
  • Single quoted string accepts double '' to express one quote #45

For the details you can have a look at the diff.

v3.1.0
  • requires PHP 7.1
  • Literal cannot begin with a character : when it follows after '" to improve JSON compatibility (syntax BC break)
  • Literal cannot begin with a character - or : followed by =[{( (syntax BC break)
  • Neon syntax: deprecated keywords on/off (#41)
  • Nette syntax: literals can begins with ! (#42)
  • removed neon.php
v3.0.0
  • requires PHP 7.0
  • uses declare(strict_types=1)
  • uses PHP 7.0 scalar and return type hints
  • some classes & members marked as final (BC break)
  • Entity: $value is mandatory
v2.4.3
  • type fixes, coding style

For the details you can have a look at the diff.

v2.4.2
  • supports PHP up to 7.2
  • coding style: fixes, lowercase true/false/null

For the details you can have a look at the diff.

v2.4.1
  • Decoder: every regexp are possessive #36
  • Entity: added __set_state() support #35

For the details you can have a look at the diff.

v2.4.0
  • requires PHP 5.6
  • added support for multilines strings nette/nette#1375
  • Decoder: added support for octal 0o777 and binary 0b11001 numbers #31
  • Decoder: generates DateTimeImmutable instead of DateTime (BC break)
  • Decoder: refactoring, added some constants

For the details you can have a look at the diff.

v2.3.5
  • Decoder: fixed datetime regexp #29
  • Decoder: some regexps changed to constants

For the details you can have a look at the diff.

v2.3.4
  • Decoder: fixed entity value conversion in the entity chain

For the details you can have a look at the diff.

v2.2.6
  • Encoder: removed trailing spaces #20
  • Decoder: fixed support for hex numbers in PHP 7

For the details you can have a look at the diff.

v2.3.3
  • Encoder: added support for entity chaining #21

For the details you can have a look at the diff.

v2.3.2
  • travis: migrating to container-based infrastructure
  • improved coding style
  • Decoder: fixed support for hex numbers in PHP 7

For the details you can have a look at the diff.

v2.2.5
  • travis: migrating to container-based infrastructure
  • improved coding style

For the details you can have a look at the diff.

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