PHPackages                             abo3adel/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. abo3adel/merger

ActiveProject

abo3adel/merger
===============

merge stub files with project predefined files

v1.2.1(5y ago)021MITPHPPHP ^7.3|^8.0

Since Jan 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ahmdadl/merger)[ Packagist](https://packagist.org/packages/abo3adel/merger)[ Docs](https://github.com/abo3adel/merger)[ RSS](/packages/abo3adel-merger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (9)Used By (0)

Merger
======

[](#merger)

composer project to merge stub files with project predefined files
------------------------------------------------------------------

[](#composer-project-to-merge-stub-files-with-project-predefined-files)

[![Latest Stable Version](https://camo.githubusercontent.com/2bfc1471a32fadb471341a2287f5383f559a506cf62cfab204ef4ffc606871ec/68747470733a2f2f706f7365722e707567782e6f72672f61626f336164656c2f6d65726765722f76)](//packagist.org/packages/abo3adel/merger) [![Total Downloads](https://camo.githubusercontent.com/45a3ec547fef20461a519f79dfc49f16a01f8f2c869884bc63dcf4ab68e284a9/68747470733a2f2f706f7365722e707567782e6f72672f61626f336164656c2f6d65726765722f646f776e6c6f616473)](//packagist.org/packages/abo3adel/merger) [![Latest Unstable Version](https://camo.githubusercontent.com/abd5dfeb0dd507838a528abc86179d7b7774c953a80a9d1f6a6e7c3f5c30c39e/68747470733a2f2f706f7365722e707567782e6f72672f61626f336164656c2f6d65726765722f762f756e737461626c65)](//packagist.org/packages/abo3adel/merger) [![License](https://camo.githubusercontent.com/4890450f607cd44d05374837263a2105198d96284881a46378da36ca86d2ddd3/68747470733a2f2f706f7365722e707567782e6f72672f61626f336164656c2f6d65726765722f6c6963656e7365)](//packagist.org/packages/abo3adel/merger)

Requirements
------------

[](#requirements)

- PHP 7.3+
- composer

Project Idea
------------

[](#project-idea)

I have a lot of dependencies to include to any fresh project, so i created this project to quickly install and configure these dependencies

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

[](#installation)

```
composer global require abo3adel/merger
```

Configration
------------

[](#configration)

set default editor to open created stub files

```
merger editor:set code
```

Supported Files
---------------

[](#supported-files)

**json, xml, yaml, .git\*** and for other files: it will append your stubs to any files with the same name and directory

Usage
-----

[](#usage)

- create new stub file **Note** by default this will open file, to disable add `-d` or `--do-not-open` option to the create command

```
merger create lara/composer.json
```

- updated the file with stub code

```
"config": {
    "sort-packages": false
},
"scripts": {
    "models": ["@php artisan ide-helper:models --nowrite"]
}
```

- add installable packages file (filename must be "install.yml")

```
merger create lara/install.yml
```

- add some packages to install

```
composer:
    - laravel/ui
    - dev:
        - sven/artisan-view
        - barryvdh/laravel-ide-helper
npm:
    - include-media
```

- then run merger from your fresh project directory

```
merger merge lara
```

this will merge all created stubs and files with the same name, then install all packages

Avaliable Commands
------------------

[](#avaliable-commands)

- create: creates new file then open it in the default editor

```
merger create {dir}/{file.ext}
```

- open: open stub file for editing

```
merger open {dir}/{file.ext}

Options:
  -d, --do-not-open     do not open the file after creating
```

- delete: delete stub file

```
merger delete {dir}/{file.ext}
```

- merge: merge stub files with your project files and install dependencies

```
merger merge {dir}

Options:
  -f, --force           replace content in  your project files with stub files
  -d, --no-append       do not append stubs that has no user files with same names
  -i, --no-install      do not run install file
      --only[=ONLY]     list of files to be merged seperated by comma
```

- dir:list : lists all user created directories or files if user added directory name

```
merger dir:list {?dir}
```

- editor:set : set default code editor to open files

```
merger editor:set notepad++
```

Contribution
------------

[](#contribution)

Contributions are **welcome** and will be fully **credited**. see [CONTRIBUTING.md](./CONTRIBUTING.md)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Every ~0 days

Total

8

Last Release

1948d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52ecaa69a122511101c45874afd50f8d440660576dbb4e536b9b9c9340fcaf21?d=identicon)[abo3adel](/maintainers/abo3adel)

---

Top Contributors

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

---

Tags

composerlaravelenvmergeryarnnpmproject scallfoldreplace predefined filesreplace laravel files

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/abo3adel-merger/health.svg)

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

###  Alternatives

[foxy/foxy

Fast, reliable, and secure NPM/Yarn/pnpm bridge for Composer

177287.5k25](/packages/foxy-foxy)[php-forge/foxy

Fast, reliable, and secure Bun/NPM/Yarn/pnpm bridge for Composer

45103.3k4](/packages/php-forge-foxy)[mwguerra/interactive-upgrader

A CLI tool that handles both Composer and npm dependencies for Laravel projects.

1913.7k](/packages/mwguerra-interactive-upgrader)

PHPackages © 2026

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