Download the PHP package art4/json-api-client without Composer

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

JsonApiClient

Latest Version Build Status codecov Total Downloads

JsonApiClient :construction_worker_woman: is a PHP Library to validate and handle the response body from a JSON API Server.

Format: JSON API 1.0

:checkered_flag: Goals

:package: Install

Via Composer

:building_construction: Upgrade to v1

Version 1.0 is finally released. :tada:

After version 0.8.0 there where no breaking changes. Every change was backward compatible and every functionality that was removed in v1.0 only triggers a deprecation warning in v0.10.

To upgrade from v0.x to v1 just update to 0.10.2 and resolve all deprecation warnings.

Or in 3 simple steps:

  1. Update your composer.json to "art4/json-api-client": "^0.10.2"
  2. Make your code deprecation warnings free
  3. Upgrade your composer.json to "art4/json-api-client": "^1.0" without breaking your app

(Compare the Symfony upgrade documentation)

:rocket: Usage

See the documentation.

Using as parser

Note: Using Art4\JsonApiClient\Helper\Parser is just a shortcut for directly using the Manager.

$document implements the Art4\JsonApiClient\Accessable interface to access the parsed data. It has the methods has($key), get($key) and getKeys().

Using as validator

JsonApiClient can be used as a validator for JSON API contents:

Extend the client

Need more functionality? Want to directly inject your model? Easily extend JsonApiClient with the Factory.

:loud_sound: Changelog

Please see CHANGELOG for more information what has changed recently.

:wrench: Contributing

Please feel free to fork and sending Pull Requests. This project follows Semantic Versioning 2 and PER-CS2.0.

This projects comes with a docker-compose.yml where all tools for development are available.

Run docker compose build to build the image. Once you've build it, run docker compose up -d to start the container in the background.

Run docker compose exec -u 1000 php bash to use the bash inside the running container. There you can use all tools, e.g. composer with composer --version

Use exit to logout from the container and docker compose stop to stop the running container.

All following commands can be run inside the running docker container.

:white_check_mark: Testing

Run PHPUnit for all tests:

Run PHPStan for static code analysis:

Let PHPUnit generate a HTLM code coverage report:

You can find the code coverage report in .phpunit.cache/code-coverage/index.html.

:white_check_mark: REUSE

The REUSE Helper tool makes licensing easy for humans and machines alike. It downloads the full license texts, adds copyright and license information to file headers, and contains a linter to identify problems.

Check all files for REUSE spec compliance:

Run this command to annotate PHP files in src and tests folders:

:heart: Credits

:page_facing_up: License

GPL3. Please see License File for more information.


All versions of json-api-client with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.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 art4/json-api-client contains the following files

Loading the files please wait ....