PHPackages                             ajgl/breakpoint-twig-extension - 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. [Templating &amp; Views](/categories/templating)
4. /
5. ajgl/breakpoint-twig-extension

ActiveLibrary[Templating &amp; Views](/categories/templating)

ajgl/breakpoint-twig-extension
==============================

Twig extension to set breakpoints

0.4.5(5mo ago)467.9M↓10.4%41MITPHPPHP &gt;=8.2CI passing

Since Mar 9Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/ajgarlag/AjglBreakpointTwigExtension)[ Packagist](https://packagist.org/packages/ajgl/breakpoint-twig-extension)[ Docs](https://github.com/ajgarlag/AjglBreakpointTwigExtension)[ RSS](/packages/ajgl-breakpoint-twig-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (15)Used By (1)

AjglBreakpointTwigExtension
===========================

[](#ajglbreakpointtwigextension)

The AjglBreakpointTwigExtension component allows you set breakpoints in twig templates.

[![Build Status](https://github.com/ajgarlag/AjglBreakpointTwigExtension/workflows/tests/badge.svg?branch=master)](https://github.com/ajgarlag/AjglBreakpointTwigExtension/actions)[![Latest Stable Version](https://camo.githubusercontent.com/6727f5a4933085dbe424a43dc112e8605bef8d3fe62839f3dc7d67b4c829dc0b/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f627265616b706f696e742d747769672d657874656e73696f6e2f762f737461626c652e706e67)](https://packagist.org/packages/ajgl/breakpoint-twig-extension)[![Latest Unstable Version](https://camo.githubusercontent.com/5604bb9e4448f95594a888ee86d0e2e73e67a4c507c37164cd53ff4aab107714/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f627265616b706f696e742d747769672d657874656e73696f6e2f762f756e737461626c652e706e67)](https://packagist.org/packages/ajgl/breakpoint-twig-extension)[![Total Downloads](https://camo.githubusercontent.com/d076ed807af6c02d759e7f90ddfafec935194c2af27752ccc7e9021d36d4af83/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f627265616b706f696e742d747769672d657874656e73696f6e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/ajgl/breakpoint-twig-extension)[![Montly Downloads](https://camo.githubusercontent.com/e040242e6b66e2a5dc784e05528f5e8186bdfc63bd0fdf66265f810fe3bd6e92/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f627265616b706f696e742d747769672d657874656e73696f6e2f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/ajgl/breakpoint-twig-extension)[![Daily Downloads](https://camo.githubusercontent.com/f0cf5c401cb117f328cceb1cbabb928fca8f74d4db075982bce2932c0d4556f9/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f627265616b706f696e742d747769672d657874656e73696f6e2f642f6461696c792e706e67)](https://packagist.org/packages/ajgl/breakpoint-twig-extension)[![License](https://camo.githubusercontent.com/42c97d4adc8b8b40e4d58fc84b0e5d0241d1a8342ba74506189c57f5653590e9/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f627265616b706f696e742d747769672d657874656e73696f6e2f6c6963656e73652e706e67)](https://packagist.org/packages/ajgl/breakpoint-twig-extension)

This component requires the [Xdebug](https://xdebug.org/) PHP extension to be installed.

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

[](#installation)

To install the latest stable version of this component, open a console and execute the following command:

```
composer require ajgl/breakpoint-twig-extension --dev
```

Usage
-----

[](#usage)

The first step is to register the extension into the twig environment

```
/* @var $twig Twig_Environment */
$twig->addExtension(new Ajgl\Twig\Extension\BreakpointExtension());
```

Once registered, you can call the new `breakpoint` function:

```

    title

    {{ breakpoint() }}

```

Once stopped, your debugger will allow you to inspect the `$environment` and `$context` variables.

### Function arguments

[](#function-arguments)

Any argument passed to the twig function will be added to the `$arguments` array, so you can inspect it easily.

```

    title

    {{ breakpoint(app.user, app.session) }}

```

Symfony Bundle
--------------

[](#symfony-bundle)

The package includes a Symfony Bundle to automatically register the Twig extension.

If the app uses Symfony Flex and you allow the recipe execution, the bundle will be enabled automatically.

If you need to configure it manually, add the following line to the `config/bundles.php` file:

```
// config/bundles.php
//...
return [
    //...
    Ajgl\Twig\Extension\SymfonyBundle\AjglBreakpointTwigExtensionBundle::class => ['dev' => true]
];
```

License
-------

[](#license)

This component is under the MIT license. See the complete license in the [LICENSE](LICENSE) file.

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/ajgarlag/AjglBreakpointTwigExtension/issues).

Author Information
------------------

[](#author-information)

Developed with ♥ by [Antonio J. García Lagar](http://aj.garcialagar.es).

If you find this component useful, please add a ★ in the [GitHub repository page](https://github.com/ajgarlag/AjglBreakpointTwigExtension).

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance69

Regular maintenance activity

Popularity55

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 95.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 ~272 days

Recently: every ~167 days

Total

14

Last Release

178d ago

PHP version history (4 changes)0.1.0PHP &gt;=5.4.0

0.3.1PHP &gt;=5.6

0.4.0PHP &gt;=7.4

0.4.4PHP &gt;=8.2

### Community

Maintainers

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

---

Top Contributors

[![ajgarlag](https://avatars.githubusercontent.com/u/388184?v=4)](https://github.com/ajgarlag "ajgarlag (79 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (2 commits)")[![charginghawk](https://avatars.githubusercontent.com/u/7936651?v=4)](https://github.com/charginghawk "charginghawk (1 commits)")[![derickr](https://avatars.githubusercontent.com/u/208074?v=4)](https://github.com/derickr "derickr (1 commits)")

---

Tags

twigXdebugbreakpoint

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ajgl-breakpoint-twig-extension/health.svg)

```
[![Health](https://phpackages.com/badges/ajgl-breakpoint-twig-extension/health.svg)](https://phpackages.com/packages/ajgl-breakpoint-twig-extension)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91492.0M315](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36763.2M221](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

22046.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22918.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21914.8M162](/packages/symfony-ux-twig-component)

PHPackages © 2026

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