PHPackages                             baraja-core/package-manager - 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. baraja-core/package-manager

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

baraja-core/package-manager
===========================

Search all package dependencies automatically and register to your project.

v3.4.5(1y ago)567.8k↓100%2[3 issues](https://github.com/baraja-core/package-manager/issues)9PHPPHP ^8.0

Since Aug 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/baraja-core/package-manager)[ Packagist](https://packagist.org/packages/baraja-core/package-manager)[ Docs](https://github.com/baraja-core/package-manager)[ RSS](/packages/baraja-core-package-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (64)Used By (9)

   ![BRJ logo](https://camo.githubusercontent.com/813c67e02a7ab7e4dc900316a4521c3ddf5846fe2cabba7140f3f4b78afda198/68747470733a2f2f63646e2e62726a2e6170702f696d616765732f62726a2d6c6f676f2f6c6f676f2d6461726b2e706e67)
 [BRJ organisation](https://brj.app)

---

Package manager
===============

[](#package-manager)

[![Integrity check](https://github.com/baraja-core/package-manager/workflows/Integrity%20check/badge.svg)](https://github.com/baraja-core/package-manager/workflows/Integrity%20check/badge.svg)

Search all package dependencies automatically and register to your project.

📦 Installation &amp; Basic Usage
--------------------------------

[](#-installation--basic-usage)

Simply use Composer:

```
$ composer require baraja-core/package-manager

```

And add to your project `composer.json` this `scripts` section:

```
"scripts": {
   "post-autoload-dump": "Baraja\\PackageManager\\PackageRegistrator::composerPostAutoloadDump"
}
```

Now is your project configured.

After each `composer ...` command this Package Manager will be called automatically.

🛠️ How to use
-------------

[](#️-how-to-use)

In `Booting` class add create new instance of `PackageRegistrator`:

```
new PackageRegistrator(
   __DIR__ . '/../',    // root path
   __DIR__ . '/../temp' // temp path
);
```

**Notice:** PackageRegistrator can work alone, Nette framework is not required, only recommended.

🗃️ Package.neon
---------------

[](#️-packageneon)

Imagine you want install new package. Then it you must set specific configuration to your project `common.neon`.

PackageRegistrator can scan all your installed packages and automatically create `package.neon` file with merged configuration. In your `common.neon` you define changes only and required parameters.

For correct work to `app/Booting.php` add generated configuration.

```
$configurator->addConfig(__DIR__ . '/config/package.neon')
```

> **Warning:** Configuration file can be different in all environment. Commit to repository is not recommended.

👷‍♀️ Tasks
----------

[](#‍️-tasks)

After creating internal container with list of packages, call list of special tasks.

Default task list (but you can add more):

- Config local neon creator and normalizer
- Assets from packages copier
- Project `composer.json` normalizer
- Clear cache

If you want add your own task, simply create class with name `*Task` implementing `ITask` interface. Package manager will find your class automatically in your project or shared package.

Order of tasks can be defined by `Priority: xxx` doc comment anotation.

🗺️ Default project assert manager
---------------------------------

[](#️-default-project-assert-manager)

In case of your package contain directory with name `install` or `update`, all inner content will be copied to your project automatically.

Structure in directory is same as your project root.

Name convention:

- `install` copy file and directories only in case when does not exist in your project structure,
- `update` rewrite your project files in all composer actions.

If you want create file `jquery.js` to `/www/js` for example, simply define package structure:

```
/src
   - files...
/install
   /www
      /js
         - jquery.js
- composer.json

```

📄 License
---------

[](#-license)

`baraja-core/package-manager` is licensed under the MIT license. See the [LICENSE](https://github.com/baraja-core/package-manager/blob/master/LICENSE) file for more details.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 97.7% 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 ~31 days

Recently: every ~255 days

Total

58

Last Release

702d ago

Major Versions

v1.1.0 → v2.0.02020-03-29

v2.5.5 → v3.0.02021-02-09

PHP version history (3 changes)v1.0.0PHP &gt;=7.1.0

v2.2.0PHP &gt;=7.4.0

v3.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3382204?v=4)[baraja](/maintainers/baraja)[@baraja](https://github.com/baraja)

---

Top Contributors

[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (211 commits)")[![Langriklol](https://avatars.githubusercontent.com/u/20239181?v=4)](https://github.com/Langriklol "Langriklol (3 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![HamAndRock](https://avatars.githubusercontent.com/u/24235083?v=4)](https://github.com/HamAndRock "HamAndRock (1 commits)")

---

Tags

composerneonpackage

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/baraja-core-package-manager/health.svg)

```
[![Health](https://phpackages.com/badges/baraja-core-package-manager/health.svg)](https://phpackages.com/packages/baraja-core-package-manager)
```

PHPackages © 2026

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