Symfony integration for Amp-toolbox-php

Installs: 7 191

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 5

Forks: 2

Open Issues: 0


v0.1.5 2021-04-09 06:27 UTC

This package is auto-updated.

Last update: 2022-05-09 09:02:38 UTC


Travis CI - Build Status Scrutinizer - Build Status Scrutinizer - Code Quality Scrutinizer - Code Coverage

Symfony integration for AMP Toolbox for PHP.


To install the bundle with Symfony Flex, use the recipe:

$ composer require holadev/amp-toolbox-bundle

Config file is needed to run this project. Must be contains a minimal config to enable:

# app/config/amp_toolbox.yaml

  transform_enabled: true

Alternatively, the property of activating the transformer can be defined through the class itself via autowiring. This property override config value of transform_enabled

# src/ExampleController.php

public function index(
        AmpOptimizerSubscriber $ampOptimizerSubscriber
    ): array {
    // controller code...


$ composer test