1. Go to this page and download the library: Download bus-factor/json-pointer 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/ */
bus-factor / json-pointer example snippets
namespace BusFactor\JsonPointer;
interface PointerInterface extends Stringable
{
/**
* @param array<string|int> $referenceTokens
*/
public function __construct(array $referenceTokens = []);
/**
* @return array<string|int>
*/
public function getReferenceTokens(): array;
public function append(string|int $referenceToken): static;
public function prepend(string|int $referenceToken): static;
public static function fromJson(string $json): static;
public function toJson(): string;
}
$pointer = new \BusFactor\JsonPointer\Pointer(['data', 'users', '1']);
$immutablePointer = new \BusFactor\JsonPointer\ImmutablePointer(['data', 'users', '1']);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.