PHPackages                             lin3s/distribution - 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. lin3s/distribution

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

lin3s/distribution
==================

Distribution library for different purposes inside LIN3S

v4.3.2(8y ago)017.3k22MITJavaScript

Since Jul 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/LIN3S/Distribution)[ Packagist](https://packagist.org/packages/lin3s/distribution)[ RSS](/packages/lin3s-distribution/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (43)Used By (2)

LIN3S Distribution
==================

[](#lin3s-distribution)

> Distribution library for different purposes inside LIN3S.

[![Latest Stable Version](https://camo.githubusercontent.com/d36679f27ae5fedbd6b46b0f3930302c165232104b2e1da58d4c0e28788d720f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6c696e33732f646973747269627574696f6e2e737667)](https://packagist.org/packages/lin3s/distribution)

Downloads from packagist (PHP):
[![Downloads from Packagist](https://camo.githubusercontent.com/52f15500c40e641a2dd619284272e0f9b7bf06b8fe8f27407d872f3b9641a79a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696e33732f646973747269627574696f6e2e737667)](https://packagist.org/packages/lin3s/lin3s-distribution)

Downloads from NPM (JS):
[![Downloads from NPM](https://camo.githubusercontent.com/465e4d7201d3f04be5b7281049056f97b91b1dc98b96ab0d9a88ee28235bfcc3/687474703a2f2f696d672e736869656c64732e696f2f6e706d2f64742f6c696e33732d646973747269627574696f6e2e7376673f7374796c653d666c6174)](https://www.npmjs.org/package/lin3s-distribution)

Why?
----

[](#why)

In [LIN3S](http://lin3s.com), we are working with many libraries and projects and usually all of them need scripts to automate some process. This library centralize this kind of scripts and tasks improving its reusability.

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

[](#installation)

At this moment, this package contains *PHP* and *JavaScript* code, so you can manage this library from [NPM](https://www.npmjs.com/) and from [Composer](https://getcomposer.org/).

If your project is in PHP, be sure that Composer is installed in your system and execute the following command:

```
$ composer require lin3s/distribution
```

Otherwise, if your project is in JavaScript, be sure that Node is installed in your system and execute the following command:

```
$ npm install lin3s-distribution --save-dev
#
# OR
#
$ yarn add lin3s-distribution --dev
```

Usage
-----

[](#usage)

The following code is the basic configuration to make it work with **Webpack**.

```
'use strict';

const Webpack = require('lin3s-distribution').Webpack;

const options = {
  entry: {
    'app': './app/Resources/assets/js/entry-app.js',
  },
  input: {
    base: 'app',
    scss: 'app/Resources/scss',
    includedNodeModules: [
      'swiper'
    ]
  },
  output: {
    jsPath: './web',
    jsPublicPath: '/',
    jsFilename: '[name].js',
    jsFilenameProduction: '[name].[chunkhash].js',

    cssPath: '',
    cssPublicPath: '/',
    cssFilename: '[name].css',
    cssFilenameProduction: '[name].[contenthash].css'
  },
  postcss: {
    autoprefixer: {
      browsers: ['last 2 versions']
    }
  },
  manifest: '../../manifest.json'
};

module.exports = Webpack(options);
```

Symfony integration
-------------------

[](#symfony-integration)

Firstly, you need to install the bundle in your app kernel.

```
// app/config/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...

        new LIN3S\Distribution\Php\Symfony\Lin3sDistributionBundle(),
        // ...
    ];
}
```

Once the bundle has been enabled you can manage the configuration. The following is the default config:

```
# app/config/config.yml

lin3s_distribution:
    webpack:
        manifest_path: "%kernel.root_dir%/../manifest.json"
        public_js_path: "/js/"
        public_css_path: "/css/"
```

> Optionally you can enable the webpack default configuration doing this:

```
# app/config/config.yml

lin3s_distribution:
    webpack: ~
```

Finally replace your script and link html tags with the following Twig tags.

```
{# app/Resources/views/base.html.twig #}

(...)

(...)

    {% webpack_entry_css 'app' %}

(...)

    {% webpack_entry_js 'app' %}

```

Licensing Options
-----------------

[](#licensing-options)

[![License](https://camo.githubusercontent.com/53dd233811d87c20e8964dd7595a963b252515ae17d3ddc27436ba2454805709/68747470733a2f2f706f7365722e707567782e6f72672f6c696e33732f646973747269627574696f6e2f6c6963656e73652e737667)](https://github.com/LIN3S/Distribution/blob/master/LICENSE)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~22 days

Total

42

Last Release

3072d ago

Major Versions

v1.2.1 → v2.0.02016-09-13

v2.4.2 → v3.0.02017-06-12

v3.0.4 → v4.0.02017-07-11

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/06308bfc15d8774c16d36d727f852c2d29ed8d0d6153637384439747776dc658?d=identicon)[benatespina](/maintainers/benatespina)

---

Top Contributors

[![benatespina](https://avatars.githubusercontent.com/u/3951376?v=4)](https://github.com/benatespina "benatespina (65 commits)")[![mktoast](https://avatars.githubusercontent.com/u/4963232?v=4)](https://github.com/mktoast "mktoast (4 commits)")[![gorkalaucirica](https://avatars.githubusercontent.com/u/1749891?v=4)](https://github.com/gorkalaucirica "gorkalaucirica (1 commits)")

---

Tags

composerdistributionjavascriptnpmphpwebpacklin3sdistribution

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/lin3s-distribution/health.svg)

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k193.1M3.0k](/packages/composer-composer)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[symfony/config

Helps you find, load, combine, autofill and validate configuration values of any kind

4.3k471.0M8.0k](/packages/symfony-config)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k245.4M24.0k](/packages/friendsofphp-php-cs-fixer)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[phpro/soap-client

A general purpose SoapClient library

8895.9M52](/packages/phpro-soap-client)

PHPackages © 2026

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