PHP code example of jeffersongoncalves / jq-cli

1. Go to this page and download the library: Download jeffersongoncalves/jq-cli library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jeffersongoncalves / jq-cli example snippets

console
$ echo {"user":{"name":"Sam","roles":["admin","dev"]}} | jq ".user.roles[]"
"admin"
"dev"
console
  winget install PHP.PHP
  
console
echo {"a":1} | jq ".a"
console
composer install
composer test           # Pest suite + Pint lint check
php vendor/bin/pest      # tests only
php vendor/bin/pint      # fix code style
console
php -d phar.readonly=0 build-phar.php
console
composer install --no-dev
php -d phar.readonly=0 build-phar.php
composer install        # restore dev tools afterwards