Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via composer

nette/neon v3.4.1

🍸 Nette NEON: encodes and decodes NEON file format.
Package summary
Share
1
issue
1
high severity
license
1
1
license
1
(BSD-3-Clause OR GPL-2.0-only OR GPL-3.0-only)
Package created
20 Mar 2014
Version published
27 Sep 2023
Maintainers
1
Total deps
1
Direct deps
0
License
BSD-3-Clause OR GPL-2.0-only OR GPL-3.0-only

Issues

1

1 high severity issue

high
Recommendation: Validate that the license expression complies with your license policy
via: nette/neon@v3.4.1
Collapse
Expand

Licenses

(BSD-3-Clause OR GPL-2.0-only OR GPL-3.0-only)

Expression
1 Packages, Including:
nette/neon@v3.4.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of nette/neon 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does nette/neon do?

Nette Neon is a human-readable structured data format utilized for configuration files in the Nette framework. The Nette Neon package offers the functionality to encode and decode data in the NEON file format. The easy-to-use package boasts a simplicity superior to XML or JSON, making data more understandable and structured in a YAML-like format. It also provides an added benefit of entities, enhancing the configuration of DI services.

How do you use nette/neon?

To use nette/neon, you first need to install the package using Composer with the command composer require nette/neon. It requires PHP versions from 8.0 up to 8.3. Once installed, you can use the Neon::encode() to convert your data to NEON, with options for multiline output and specific indentation characters. To convert NEON to PHP value, use Neon::decode(). Here's an example code:

use Nette\Neon\Neon;

// Encoding to NEON
$neon = Neon::encode($value); // Returns $value converted to NEON
$neon = Neon::encode($value, true); // Returns $value converted to multiline NEON

// Decoding from NEON
$value = Neon::decode('hello: world'); // Returns an array ['hello' => 'world']

All methods throw a Nette\Neon\Exception on error, ensuring any issues in encoding or decoding are flagged.

Where are the nette/neon docs?

The documentation for using nette/neon can be found on the Nette website. This comprehensive guide dives into the various aspects of using Nette Neon. It details examples of different data types and their representation in NEON, along with step-by-step instructions on encoding and decoding data. It further covers error handling and provides details on the usage of entities in NEON.