Download the PHP package php-alchemist/json without Composer

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

PHP Alchemist JSON

Package: php-alchemist/json Current Version: v1.x -- (2025/06)

What?

A basic library for working with json and being able to map json objects to a particular class

Unit Tests StyleCI
Quality Gate Status

Usage

The PHP Alchemist JSON library consists of two parts that can be used together or separately.

JsonHydratorTrait

The first is a trait PHPAlchemist\Json\Trait\JsonHydratorTrait which has a single function called hydrateFromJson() which accepts a string called $json which is expected to be a JSON object. It then will loop through the object and looks for setter functions or if the property exists for each key and then sets the data appropriately on the object.

JsonMapper

The second is PHPAlchemist\Json\Service\JsonMapper which has a map() functino which will accept a JSON string ($json) and a classname ($class). This will validate the JSON and throw a PHPAlchemist\Json\Exception\BadJsonException if it is invalid. It will then instantiate a new class of the given type, check to see if the hydrateFromJson() exists. If it does, then it will use that otherwise it will then go through the same process to set the JSON keys via setter or public access.

Example

OUTPUT:


All versions of json with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
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 php-alchemist/json contains the following files

Loading the files please wait ...