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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dhiraj1site/jsonappend

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

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

17PHPCI failing

Since Jun 21Pushed 5y agoCompare

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

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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

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://avatars.githubusercontent.com/u/20858705?v=4)[Dhiraj](/maintainers/dhiraj1site)[@dhiraj1site](https://github.com/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)
```

###  Alternatives

[kitano/php-expression

PHP Expression language

301.2k](/packages/kitano-php-expression)

PHPackages © 2026

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