PHPackages                             dhiraj1site/jsonappend - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dhiraj1site/jsonappend

ActiveLibrary

dhiraj1site/jsonappend
======================

A simple PHP library package to append JSON entries into a pre-existing JSON file

17PHPCI failing

Since Jun 21Pushed 4y agoCompare

[ Source](https://github.com/dhiraj1site/JSONAppend)[ Packagist](https://packagist.org/packages/dhiraj1site/jsonappend)[ RSS](/packages/dhiraj1site-jsonappend/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

JSON Append Library
===================

[](#json-append-library)

If you are trying to append a JSON entry into a pre-existing JSON file, you can use this library to add/append additional entries to a JSON file format. This package also supports a separate function to ignore pre-existing JSON entries.

Installation
------------

[](#installation)

`composer require dhiraj1site/jsonappend`

Usage
-----

[](#usage)

There are basically two major functions used in the JSONAppend class.

Function #1 - appendJSON
------------------------

[](#function-1---appendjson)

This function requires two parameters. The first parameter will be the source JSON file you need to append into. The second parameter will be an array with key/value pair which you require to append into the source JSON file.

`@param1 - .json file``@param2 - array $appenditems`

Function #2 - appendUniqueJSON
------------------------------

[](#function-2---appenduniquejson)

This function is similar to appendJSON. Except this ignores duplicate JSON entires. Parameters are the same as above

```
use JSONAppend;
JSONAppend::appendUniqueJSON('services.json', array($items));

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6013f630c408bb03fc95265fc170d83f0d90006b03ec0c5567711c97efaf3b7?d=identicon)[dhiraj1site](/maintainers/dhiraj1site)

---

Top Contributors

[![dhiraj1site](https://avatars.githubusercontent.com/u/20858705?v=4)](https://github.com/dhiraj1site "dhiraj1site (7 commits)")

### Embed Badge

![Health badge](/badges/dhiraj1site-jsonappend/health.svg)

```
[![Health](https://phpackages.com/badges/dhiraj1site-jsonappend/health.svg)](https://phpackages.com/packages/dhiraj1site-jsonappend)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
