Download the PHP package cerbero/lazy-json without Composer

On this page you can find all versions of the php package cerbero/lazy-json. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lazy-json

๐Ÿผ Lazy JSON

Author PHP Version Build Status Coverage Status Quality Score PHPStan Level Latest Version PER Total Downloads

Framework-agnostic package to load JSON of any size and from any source into Laravel lazy collections.

Lazy JSON recursively turns any JSON array or object into a lazy collection, consuming only a few KB of memory while parsing JSON of any dimension.

It optionally allows to extract only some sub-trees, instead of the whole JSON, with an easy dot-notation syntax.

Under the hood, ๐Ÿงฉ JSON Parser is used to parse JSONs and extract sub-trees.

Need to lazy load items from paginated JSON APIs? Consider using ๐Ÿผ Lazy JSON Pages instead.

๐Ÿ“ฆ Install

Via Composer:

๐Ÿ”ฎ Usage

๐Ÿ‘ฃ Basics

Depending on our coding style, we can call Lazy JSON in 3 different ways:

The variable $source in our examples represents any Laravel lazy collection to process the JSON in a memory-efficient way:

๐Ÿ’ง Sources

A JSON source is any data point that provides a JSON. A wide range of sources are supported by default:

For more information about JSON sources, please consult the ๐Ÿงฉ JSON Parser documentation.

๐ŸŽฏ Dots

If we only need a sub-tree of a large JSON, we can use a simple dot-notation syntax to extract the desired path (or dot).

Consider this JSON for example. To extract only the cities and avoid parsing the rest of the JSON, we can set the results.*.location.city dot:

The dot-notation syntax is very simple and it can include any of the following 4 elements:

If we need to extract several sub-trees, Lazy JSON supports multiple dots:

๐Ÿ“† Change log

Please see CHANGELOG for more information on what has changed recently.

๐Ÿงช Testing

๐Ÿ’ž Contributing

Please see CODE_OF_CONDUCT for details.

๐Ÿงฏ Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

๐Ÿ… Credits

โš–๏ธ License

The MIT License (MIT). Please see License File for more information.


All versions of lazy-json with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
cerbero/json-parser Version ^1.1
illuminate/collections Version >=8.12
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cerbero/lazy-json contains the following files

Loading the files please wait ....