PHPackages                             albo-vieira/json-object - 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. albo-vieira/json-object

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

albo-vieira/json-object
=======================

Json object to work better with json

0352

Since Jul 1Compare

[ Source](https://github.com/AlboVieira/json-object)[ Packagist](https://packagist.org/packages/albo-vieira/json-object)[ RSS](/packages/albo-vieira-json-object/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

json-object
===========

[](#json-object)

Json object to work better with json .

### Instalation

[](#instalation)

```
composer require albo-vieira/json-object:dev-master && install
```

### Usage

[](#usage)

```
$json = new Json();

/** Creating a Json Object without data, just keys */
$obj = $json->create('id','status','data','message','token');

/** Creating a Json Object with data, keys and values from a string json */
$jsonStr= '{
        "registration_ids": ["54654564645"],
        "notification":
        {
            "title":"This is a title. title",
            "text":"here is a message. message"
        }
    }' ;
$objFromJson = (new Json())->createFromJson($jsonStr);

/** Creating a Json Object with data, keys and values from an array */
$objFromArray = (new Json())->createFromArray([
    'id' => 1,
    'status' => 'on',
    'data' => [1,2],
    'message' => 'A message',
    'token' => 'Token for validate'
]);

/** The keys of the array became attributes , then you can change the values like you want */
$objFromArray->status = 'off';
$objFromArray->token = 'New Token';

/** Render Json */
$json->render();

/** Convert obj in array */
$json->toArray();

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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/6727150?v=4)[Albo Vieira](/maintainers/AlboVieira)[@albovieira](https://github.com/albovieira)

### Embed Badge

![Health badge](/badges/albo-vieira-json-object/health.svg)

```
[![Health](https://phpackages.com/badges/albo-vieira-json-object/health.svg)](https://phpackages.com/packages/albo-vieira-json-object)
```

###  Alternatives

[yiithings/yii2-dotenv

PHP DotEnv for Yii2 framework

40606.4k7](/packages/yiithings-yii2-dotenv)

PHPackages © 2026

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