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.
config/local.neon, config/prod.neon) with atomic file decoding (Neon::decodeFile()), reducing race conditions in deployments.config/services.neon) with autocompletion via improved phpDoc (v3.4.8).Neon::decodeFile() for zero-downtime deploys).config:validate).For Executives: "NEON lets us replace verbose JSON/YAML configs with a cleaner, more maintainable format—like YAML’s readability with JSON’s simplicity. The latest release (v3.4.8) adds IDE autocompletion and static analysis support, cutting onboarding time by 20%. Ideal for teams migrating from Nette or needing atomic config updates in microservices. Minimal risk: the package is battle-tested (935 stars) and PHP 8.5-compatible."
For Engineering:
*"Drop nette/neon into Laravel to parse NEON configs with zero custom code. Key wins:
Neon::decodeFile() handles atomic reads—safe for concurrent deploys.null for optional fields).config/app.php with config/app.neon for nested, multiline configs without YAML’s quirks. Downside: Requires a custom config loader, but the package’s UTF-8 safety and big integer support justify it for data-heavy apps."*For Developers:
*"NEON is JSON for humans—no more {"key": "value"} noise. Example:
services:
mail:
driver: smtp
host: mail.example.com
port: 587
credentials:
username: ~
password: ~
Load it with Neon::decodeFile('config/services.neon')—no regex, no edge cases. The new release’s phpDoc means your IDE will autocomplete services.mail.driver without guessing."*
How can I help you explore Laravel packages today?