PHPackages                             chiron/package-discovery - 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. [Framework](/categories/framework)
4. /
5. chiron/package-discovery

ActiveComposer-plugin[Framework](/categories/framework)

chiron/package-discovery
========================

Composer Scripts for Chiron Framework Package Auto Discvery

2.3(6y ago)038[1 issues](https://github.com/ncou/Chiron-PackageDiscovery/issues)1MITPHPPHP ^7.1

Since Sep 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ncou/Chiron-PackageDiscovery)[ Packagist](https://packagist.org/packages/chiron/package-discovery)[ Docs](https://github.com/ncou/Chiron-PackageDiscovery)[ RSS](/packages/chiron-package-discovery/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (1)

[![Build Status](https://camo.githubusercontent.com/54829896698b6baa52c3a309f14a7e024c6c00b1caa06d7fb02a6aa916514884/68747470733a2f2f7472617669732d63692e6f72672f6e636f752f436869726f6e2d5061636b616765446973636f766572792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ncou/Chiron-PackageDiscovery)[![Coverage Status](https://camo.githubusercontent.com/de2950422d9649af02f0385bcdeee28b76bd49f3c94d792f2c4ed356fb16f0f3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e636f752f436869726f6e2d5061636b616765446973636f766572792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ncou/Chiron-PackageDiscovery?branch=master)[![CodeCov](https://camo.githubusercontent.com/eed11f81b6df30c48d67730ac2856c43c07e56a88b9eccb821853d53474d28ab/68747470733a2f2f636f6465636f762e696f2f67682f6e636f752f436869726f6e2d5061636b616765446973636f766572792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/ncou/Chiron-PackageDiscovery)

[![Latest Stable Version](https://camo.githubusercontent.com/79e5c4758e91cc2f7e0de8631d12a47ea17da3d4f9356f2d32ea2929c4eea9db/68747470733a2f2f706f7365722e707567782e6f72672f636869726f6e2f7061636b6167652d646973636f766572792f762f737461626c652e706e67)](https://packagist.org/packages/chiron/package-discovery)[![Total Downloads](https://camo.githubusercontent.com/6d891d76ab19f2f1e792650c4cad7c4fd432d8983ecd18e07cf29761aae127a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636869726f6e2f7061636b6167652d646973636f766572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chiron/package-discovery/stats)[![Monthly Downloads](https://camo.githubusercontent.com/7b7fa62003fefc474eb9f60c73f3fb07b709a2ad53987dffbdcb15a71e5a2886/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f636869726f6e2f7061636b6167652d646973636f766572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chiron/package-discovery/stats)

[![StyleCI](https://camo.githubusercontent.com/562127037e85d3ee2a885073b4817c8c33eb7801d82ec4cbb59aa43816ca6899/68747470733a2f2f7374796c6563692e696f2f7265706f732f3135303837383533362f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/150878536)[![PHP-Eye](https://camo.githubusercontent.com/fb4c0481ac41f55647a283ed951848ff3be94677f831acff58976f21fa4aba02/68747470733a2f2f7068702d6579652e636f6d2f62616467652f636869726f6e2f7061636b6167652d646973636f766572792f7465737465642e7376673f7374796c653d666c6174)](https://php-eye.com/package/chiron/package-discovery)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)

Chiron Package Discovery
------------------------

[](#chiron-package-discovery)

Basic Composer script to allow package discovery for the Chiron micro framework.

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

[](#installation)

1. Run

    ```
    $ composer require chiron/package-discovery

    ```
2. Add service provider to **config/container.php**.

    ```
    'providers' => [
        ...
        Chiron\PackageDiscovery\PackageDiscoveryServiceProvider::class,
    ],
    ```
3. Make sure your package's **composer.json** file as below

```
"extra": {
    "chiron": {
        "providers": [
            "Chiron\\Debugbar\\ServiceProvider"
        ]
    }
}
```

Helpers
-------

[](#helpers)

The `ComposerScripts` class also implements a static method `postCreateProject()` that can be called after a Chiron project is created, through the `post-create-project-cmd` composer script. A similar method exists for running tasks after each `composer install` call, which is `postInstall()`. These methods allow to run other `ComposerScripts` class methods like `setPermission()` or `generateApplicationKey()`, depending on the corresponding parameters set in the `extra` section of the `composer.json` file. For example,

```
{
    "name": "chiron/skeleton",
    "type": "project",
    ...
    "extra": {
        "post-create-project-cmd": {
            "copyFiles": [
                {
                    "config/templates/console-local.php": "config/console-local.php",
                    "config/templates/web-local.php": "config/web-local.php",
                    "config/templates/db-local.php": "config/db-local.php",
                    "config/templates/cache.json": ["runtime/cache.json", true]
                }
            ],
            "generateApplicationKey": [
                "config/web-local.php"
            ]
        },
        "post-install-cmd": {
            "setPermission": [
                {
                    "runtime": "0777",
                    "web/assets": "0777",
                    "chiron": "0755"
                }
            ]
        }
    }
}
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

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 ~28 days

Recently: every ~0 days

Total

12

Last Release

2515d ago

Major Versions

0.7 → 1.02019-08-03

1.x-dev → 2.02019-08-03

PHP version history (2 changes)0.1PHP &gt;=7.1.3

0.5PHP ^7.1

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

frameworkpackagediscoverydiscoverautoautodiscoverychiron

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chiron-package-discovery/health.svg)

```
[![Health](https://phpackages.com/badges/chiron-package-discovery/health.svg)](https://phpackages.com/packages/chiron-package-discovery)
```

###  Alternatives

[jsdecena/laracom

Laravel powered e-commerce

2.0k4.4k](/packages/jsdecena-laracom)[rcv/core

Enterprise-Grade Modular Architecture for Laravel Applications - A powerful Laravel package that revolutionizes application development with robust Service Repository Pattern, Dynamic Module Management, and 50+ Artisan commands for scalable, maintainable applications.

131.2k](/packages/rcv-core)

PHPackages © 2026

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