PHPackages                             symfonette/neon-integration - 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. symfonette/neon-integration

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

symfonette/neon-integration
===========================

Integrates Nette Neon to Symfony

352PHP

Since Aug 30Pushed 7y ago4 watchersCompare

[ Source](https://github.com/symfonette/neon-integration)[ Packagist](https://packagist.org/packages/symfonette/neon-integration)[ RSS](/packages/symfonette-neon-integration/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nette Neon for Symfony
======================

[](#nette-neon-for-symfony)

[![Latest Stable Version](https://camo.githubusercontent.com/407ff287a3763dd22451561b0535744da9a4874eff0e15852b859ffbbaaf9346/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f6e657474652f6e656f6e2d696e746567726174696f6e2f76657273696f6e)](https://packagist.org/packages/symfonette/neon-integration)[![Build Status](https://camo.githubusercontent.com/3031a507cc552b7f76a000ed8c08937d52564bc38e434e77a19a8ebe22e7f889/68747470733a2f2f7472617669732d63692e6f72672f73796d666f6e657474652f6e656f6e2d696e746567726174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/symfonette/neon-integration)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d6b4123ebdddb165883eb043afb1d72dbb279dadd59b0825fdf0fe98ee1c3d7d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73796d666f6e657474652f6e656f6e2d696e746567726174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/symfonette/neon-integration/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/01782b6117868217ef1d14f081c83e3d41be277d21ad418fd091131c4127010f/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31633562386330622d623062382d346466662d613130332d3162393437323934623539642f6d696e692e706e67)](https://insight.sensiolabs.com/projects/1c5b8c0b-b0b8-4dff-a103-1b947294b59d)

Provides integration for Nette Neon with Symfony Dependency Injection component.

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

[](#installation)

With composer:

```
composer require symfonette/neon-integration

```

You can use it with Dependency Injection component:

```
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfonette\NeonIntegration\DependencyInjection\NeonFileLoader;

$container = new ContainerBuilder();
$loader = new NeonFileLoader($container);
$loader->load('/path/to/config.neon');
```

If you are using Symfony framework you can update your `app/AppKernel.php` file:

```
use Symfony\Component\HttpKernel\Kernel;
use Symfonette\NeonIntegration\HttpKernel\NeonContainerLoaderTrait;

class AppKernel extends Kernel
{
    use NeonContainerLoaderTrait;

    // ...
}
```

Usages
------

[](#usages)

### Includes

[](#includes)

```
# simplified syntax
includes:
    - parameters.yml

# standard YAML syntax
imports:
    - resource: parameters.yml
```

### Services configuration in NEON

[](#services-configuration-in-neon)

#### Class

[](#class)

```
# simplified syntax
services:
    mailer: Mailer

# standard YAML syntax
services:
    mailer:
        class: Mailer
```

#### Arguments

[](#arguments)

```
# simplified syntax
services:
    newsletter_manager: NewsletterManager(@my_mailer)
    article__manager:
        class: ArticleManager(@doctrine)

# standard YAML syntax
services:
    newsletter_manager:
         class:     NewsletterManager
         arguments: ['@my_mailer']
```

#### Calls

[](#calls)

```
# simplified syntax
calls:
    -
```

#### Calls and properties

[](#calls-and-properties)

```
```

#### Factory

[](#factory)

```
# simplified syntax
services:
  form:
    class: App\Form
    factory: App\FormFactory::createForm('registration')

# standard YAML syntax
services:
  form:
    class: App\Form
    factory: App\FormFactory::createForm('registration')
```

#### Autowiring

[](#autowiring)

```
# simplified syntax
services:
    twitter_client: AppBundle\TwitterClient(...)
    facebook_client: AppBundle\FacebookClient(..., %kernel.root_dir%)

# standard YAML syntax
services:
    twitter_client:
        class: "AppBundle\TwitterClient"
        autowire: true
    facebook_client:
        class: "AppBundle\FacebookClient"
        autowire: true
        arguments: ['', %kernel.root_dir%]
```

#### Alias

[](#alias)

```
# simplified syntax
services:
    translator: @translator_default

# standard YAML syntax
services:
    translator:
        alias: translator_default
```

#### Parent

[](#parent)

```
# simplified syntax
services:
    newsletter_manager < mail_manager: NewsletterManager

# standard YAML syntax
services:
    newsletter_manager:
        class: NewsletterManager
        parent: mail_manager
```

#### Expression

[](#expression)

```
# alternative syntax
services:
    my_mailer:
        class: Acme\HelloBundle\Mailer
        arguments:
            - expr("service('mailer_configuration').getMailerMethod()")
            #- expression("service('mailer_configuration').getMailerMethod()")

# standard YAML syntax
services:
    my_mailer:
        class: Acme\HelloBundle\Mailer
        arguments:
            - "@=service('mailer_configuration').getMailerMethod()"
```

#### Tags

[](#tags)

```
# symplified syntax
services:
    app.response_listener:
        class: ResponseListener
        tags:
            - kernel.event_listener(event=kernel.response, method=onKernelResponse)
    captcha:
        class: CaptchaType
        tags:
            - form.type

# standard YAML syntax
services:
    app.response_listener:
        class: ResponseListener
        tags:
            - { name: kernel.event_listener, event: kernel.response, method: onKernelResponse }
    captcha:
        class: CaptchaType
        tags:
            - { name: form.type }
```

### Anonymous services

[](#anonymous-services)

```
services:
    mailer: Mailer(Zend_Mail_Transport_Smtp('smtp.gmail.com'))
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/306adbad9084ed5c22aa85cbfce4899263466d76dff211b5c4c9f54dc23c40a1?d=identicon)[hason](/maintainers/hason)

---

Top Contributors

[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (12 commits)")

---

Tags

configurationneonsymfony

### Embed Badge

![Health badge](/badges/symfonette-neon-integration/health.svg)

```
[![Health](https://phpackages.com/badges/symfonette-neon-integration/health.svg)](https://phpackages.com/packages/symfonette-neon-integration)
```

###  Alternatives

[m2-boilerplate/module-critical-css

Magento 2 module to automatically generate critical css with the addyosmani/critical npm package

3682.8k](/packages/m2-boilerplate-module-critical-css)[jajuma/awesomehyva

This Magento 2 extension allows using Font Awesome 5 icons with Hyvä Themes

1352.7k](/packages/jajuma-awesomehyva)

PHPackages © 2026

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