Download the PHP package codeenigma/jsonpopulate without Composer

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

Build Status

jsonPopulate

A PHP tool to populate JSON data from existing web pages. This allow the use of relevant content instead of "dummy" one for HTML prototypes (PatternLab and similar)

Requirements

jsonPopulate requires php 7.0 or greater.

Install

Clone and install dependencies with composer, by running:

Alternatively, you can integrate it to your own project:

Setup

Server

Simplest is to use php built in server:

or, if inside a VM of some kind, use the appropriate IP, eg for ce-vm:

If in doubt or having issues, you can use the 0.0.0.0 IP to listen on all addresses. This means it potentially is accessible by others on the same network, so can be a security issue.

Configuration

Create a jsonpopulate.yml file somewhere in a parent folder of the jsonpopulate codebase. Look at the example folder for how the syntax look like, it basically consists in pairing "source" json files with "url" targets.

Note 1: The config file can be directly within any parent directory of the main jsonpopulate codebase

Eg, provided jsonpopulate is at

Your config file can be at any of these locations:

but can NOT be at eg:

Note 2: Paths to the sources files are relative to the config file

Using the same example as above, given a config file at

and a json file at

the "source" for that file in your jsonpopulate would be "pattern-lab/source/data.json"

Usage

Loading

Visit http://localhost:8000. You should be presented with:

Setting values

Start by clicking on a supported element (links, images, ...) on the visited url on the right. Then click on the json value you want to fill/override: you should be presented with a dropdown of possible variants derived from the previously clicked element.

Navigating

To make it easier to find the elements you want, the "iframe" also allows you to navigate further between inner pages. To bypass the click hijack and actually follow a link, hold the "Alt" key while you click.

Known issues

Security

Should be obvious, but this is intended for local dev usage. Never make this accessible over http on a public server. NEVER !


All versions of jsonpopulate with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
guzzlehttp/guzzle Version ^6.3
symfony/config Version ^3.3
symfony/http-foundation Version ^3.2
symfony/yaml Version ^3.3
twig/twig Version ^1.23 || ^2.0
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 codeenigma/jsonpopulate contains the following files

Loading the files please wait ....