PHPackages                             luyadev/luya-composer - 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. luyadev/luya-composer

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

luyadev/luya-composer
=====================

LUYA composer core

1.1.2(5y ago)3193.8k↓21.3%33MITPHPCI failing

Since May 2Pushed 4y ago2 watchersCompare

[ Source](https://github.com/luyadev/luya-composer)[ Packagist](https://packagist.org/packages/luyadev/luya-composer)[ RSS](/packages/luyadev-luya-composer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (3)

LUYA Composer Plugin
====================

[](#luya-composer-plugin)

[![Build Status](https://camo.githubusercontent.com/be3ba2bbf26abd85c069bac71aac062508127d71696436a566d4d348b98fd01c/68747470733a2f2f7472617669732d63692e6f72672f6c7579616465762f6c7579612d636f6d706f7365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/luyadev/luya-composer)[![Test Coverage](https://camo.githubusercontent.com/c2ce96587ee102313d9d0e9e001d8456be07884583536f3d7cad40c78532240e/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31623033666431653539336430333535643362312f746573745f636f766572616765)](https://codeclimate.com/github/luyadev/luya-composer/test_coverage)[![Total Downloads](https://camo.githubusercontent.com/33f97b23333dc8ac83d9ccdca8edd3fd092c61522f91a6ea7d1a49c841c1c1b0/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d636f6d706f7365722f646f776e6c6f616473)](https://packagist.org/packages/luyadev/luya-composer)[![Latest Stable Version](https://camo.githubusercontent.com/32d2a73ebe8b62314897f99f257088ba4fa62a8f054424bba28753d341e63844/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d636f6d706f7365722f762f737461626c65)](https://packagist.org/packages/luyadev/luya-composer)[![Join the chat at https://gitter.im/luyadev/luya](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/luyadev/luya)

Following Tasks are done by the luya composer task:

- Provides the symlink to the bin file inside the root directory of the application.
- Bind blocks into the system without a module
- Add files to the LUYA Bootstrapping process.

> In order to enable luya extra section in your package, the package type must be either `luya-extension` or `luya-module`.

An example of define a blocks folder inside your composer json file.

```
"type" : "luya-extension",
"extra" : {
    "luya" : {
        "blocks": [
            "path/to/blocks",
            "path/to/one/Block.php"
        ],
        "bootstrap": [
            "namespace\\to\\my\\BootstrapFile"
        ]
    }
}
```

LUYA will now import those blocks when running the `import` command.

> For root packages there is a `symlink` property available inside luya section of extra in order to disable the symlink of luya binary into application folder.

Local Testing for Composer Plugin Development
---------------------------------------------

[](#local-testing-for-composer-plugin-development)

In order to test the luya composer plugins you have to create a new folder **outside of the current luya-composer folder** and include the the composer package with a composer.json as following:

```
{
    "minimum-stability" : "dev",
    "repositories": [
        {
            "type": "path",
            "url": "../luya-composer"
        }
    ],
    "require": {
        "luyadev/luya-composer": "*"
    }
}
```

Then you can create a test.sh file to test the plugin process like

```
#!/bin/bash

rm -rf vendor
rm -r composer.lock
composer update -v
```

Give the script `test.sh` the permissions with `chmod +x test.sh` and now run

```
./test
```

In order to test the installer events you have to create a sub package like

```
{
    "name" : "my/test",
    "extra" : {
        "luya" : {
            "blocks": [
                "path/to/blocks/*"
            ]
        }
    }
}
```

The sub package must be linked in your local testing composer.json

```
{
    "minimum-stability": "dev",
    "repositories": [
        {
            "type": "path",
            "url": "../luya-composer"
        }
        {
            "type": "path",
            "url": "../path/to/my/test/package"
        }
    ],
    "require": {
        "luyadev/luya-composer": "*",
        "my/test" : "*"
    },
    "extra" : {
        "luya" : {
            "blocks": [
                "path/to/blocks/*"
            ]
        }
    }
}
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% 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 ~107 days

Total

12

Last Release

2119d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86184bf08843ed8fcc4aedb2fdecd8a9e832e47e89a7166cebfda529c176f5ce?d=identicon)[nadar](/maintainers/nadar)

---

Top Contributors

[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (83 commits)")[![boehsermoe](https://avatars.githubusercontent.com/u/2466744?v=4)](https://github.com/boehsermoe "boehsermoe (31 commits)")[![hbugdoll](https://avatars.githubusercontent.com/u/6715827?v=4)](https://github.com/hbugdoll "hbugdoll (1 commits)")

---

Tags

composerluyacomposerluya

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/luyadev-luya-composer/health.svg)

```
[![Health](https://phpackages.com/badges/luyadev-luya-composer/health.svg)](https://phpackages.com/packages/luyadev-luya-composer)
```

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M859](/packages/bamarni-composer-bin-plugin)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[helhum/dotenv-connector

Makes it possible to set environment variables for composer projects.

1594.6M34](/packages/helhum-dotenv-connector)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1395.0M52](/packages/mnsami-composer-custom-directory-installer)[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)

PHPackages © 2026

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