Download the PHP package swaggest/json-cli without Composer

On this page you can find all versions of the php package swaggest/json-cli. 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 json-cli

JSON CLI multitool

A CLI app to find unordered diff between two JSON documents (based on swaggest/json-diff), generate JSON Schema and Go/PHP code, pretty print, minify, yaml convert, etc....

Build Status Scrutinizer Code Quality Code Climate Code Coverage Image Size Code lines Comments

Purpose

Installation

Docker

json-cli can load schema from stdin (using - as a file path) which can be handy with docker, for example:

Composer

Install PHP Composer

CLI tool

Usage

Input paths can be .json/.yaml/.yml/.serialized files, file format is detected by file extension:

Diff, make JSON Patch from two documents

Example:

Making JSON Patch

Apply JSON Patch to document

Rearrange JSON document to keep original order

Example:

Using with standard diff

Show difference between two JSON documents

Example:

Showing differences in JSON mode

Pretty-print JSON document or convert between formats

Minify JSON document

Bash command to minify all JSON files in current directory.

Replace values in JSON document

Example:

Resolve JSON Pointer to a value from document

Example:

Resolve JSON Pointer to a position in JSON file (line:col)

Example:

Validate JSON document against JSON Schema

Example:

Generate/update JSON Schema from instance value(s).

New or existing schema is synchronized to match data samples.

Basic example:

Advanced example:

Updates swagger.json with actual response samples provided in dump-responses.jsonl.

Generate Go structure from JSON Schema.

Go code is built using swaggest/go-code-builder.

Example:

Advanced example:

Generate PHP classes from JSON Schema.

PHP code is built using swaggest/php-code-builder.

Generated classes require swaggest/json-schema package.

Advanced example:

Generate JSDoc type definitions from JSON Schema.

Example:

Generate Markdown documentation from JSON Schema.

Example:

Generate JSON sample from JSON Schema.


All versions of json-cli with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
swaggest/json-diff Version ^3.8.3
php-yaoi/php-yaoi Version ^1
symfony/yaml Version ^3
salsify/json-streaming-parser Version ^7.0
swaggest/json-schema Version ^0.12.41
swaggest/go-code-builder Version 0.4.51
swaggest/php-code-builder Version ^0.2.41
swaggest/code-builder Version ^0.3.5
swaggest/json-schema-maker Version ^0.3.7
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 swaggest/json-cli contains the following files

Loading the files please wait ....