Download the PHP package minituex/json-file-checker without Composer

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

Json File Checker

Overview

This tool allows developers to ensure that all translation files/i18n json files are complete on a key basis. Simply define a base language and compare all other files to this base file.

Usage

Add the following to your composer.json

"minituex/json-file-checker": "^1.0

After updating composer you can now use jcheck as described:

Options

-b defines the base language. Make sure to use the exact name of the file so "en" for en.json and "En" for En.json -d the directory in which the language files are located.

Example

php vendor/minituex/json-file-checker/src/jcheck.php -d frontend/asset/i18n/ -b en

Output

No output means you files are all correct, no keys are missing.

If there are keys missing, the script will exit with code 1 and print a list of keys by file.

CI/CD

This script was intended for CI/CD integration. The quickest way is to define a composer script calling jcheck and then calling this composer script from your CI/CD yaml, but you can also call jcheck directly in your CI/CD.

Limitations

jcheck can only check for a complete set of keys however it cannot check the translations itself. It is not meant as tool for translators but an aid for developers to make sure no keys are missed in any file.


All versions of json-file-checker with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
ext-json Version *
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 minituex/json-file-checker contains the following files

Loading the files please wait ....