PHPackages                             atiksoftware/php-class-schema-merger - 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. atiksoftware/php-class-schema-merger

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

atiksoftware/php-class-schema-merger
====================================

PHP array migrate,replace or fix with schema and with default data

1.0(7y ago)0361MITPHP

Since Sep 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/atiksoftware/php-class-schema-merger)[ Packagist](https://packagist.org/packages/atiksoftware/php-class-schema-merger)[ RSS](/packages/atiksoftware-php-class-schema-merger/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

PHP Array Merger with Schema
============================

[](#php-array-merger-with-schema)

PHP array migrate,replace or fix with schema and with default data

---

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

[](#installation)

### Using Composer

[](#using-composer)

```
composer require atiksoftware/php-class-schema-merger
```

```
require __DIR__.'/../vendor/autoload.php';

use \Atiksoftware\Schema\Merger;
$schemaMerger = new Merger();
```

#### *Example*

[](#example)

```
    $schemaMerger->setSchema([
        "_id" => [
            "_type"    => "string",
            "_default" => "5f5e100"
        ],
        "name" => [
            "_type"    => "string",
            "_default" => "Yeni başlık",
            "_format"  => "fullname"
        ],
        "title" => [
            "_type"    => "array",
            "TR" => [
                "_type"    => "string",
                "_default" => "Türkçe Başlık",
                "_format"  => "upfirst"
            ],
            "EN" => [
                "_type"    => "string",
                "_default" => "English Title"
            ],
        ],
        "tags" => [
            "_type"    => "array",
            "_default" => [ ],
        ],
        "date" => [
            "_type"    => "array",
            "edit" => [
                "_type"    => "integer",
                "_default" => time()
            ]
        ],
        "admin" => [
            "_type"    => "boolean",
            "_default" => false
        ],
        "age" => [
            "_type"    => "int",
            "_default" => 15,
            "_min"     => 5,
            "_max"     => 35,
        ],
    ]);

    $item = [
        "name"  => "Mansur atik",
        "title" => [
            "TR" => "Nasıl"
        ],
        "admin" => 1,
        "age"   => 434
    ];

    $result = $schemaMerger->Migrate($item);
    var_dump($result);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2811d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/atiksoftware-php-class-schema-merger/health.svg)

```
[![Health](https://phpackages.com/badges/atiksoftware-php-class-schema-merger/health.svg)](https://phpackages.com/packages/atiksoftware-php-class-schema-merger)
```

###  Alternatives

[justintadlock/hybrid-breadcrumbs

A powerful breadcrumb script for inclusion with WordPress themes.

464.2k](/packages/justintadlock-hybrid-breadcrumbs)[hhennes/module-cms

Add canonical tag to magento 2 cms pages

1631.7k](/packages/hhennes-module-cms)

PHPackages © 2026

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