PHPackages                             pushword/snippet - 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. pushword/snippet

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

pushword/snippet
================

Reusable, editor-owned content fragments and dev-registered components for Pushword CMS.

1.0.0-rc634(1w ago)00MITPHP

Since May 24Pushed 6d agoCompare

[ Source](https://github.com/Pushword/snippet)[ Packagist](https://packagist.org/packages/pushword/snippet)[ Docs](https://pushword.piedweb.com/extension/snippet)[ RSS](/packages/pushword-snippet/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (19)Used By (0)

Pushword Snippet
================

[](#pushword-snippet)

Editor-owned **reusable content fragments** and developer-registered **components** for [Pushword](https://pushword.piedweb.com), invoked from page content with a single Twig function.

Features
--------

[](#features)

- **Content snippets**: reusable Markdown owned by the editor (CTA, author box, footer note), one row per host/locale.
- **Component snippets**: dev-registered components with a parameter schema and a Twig template.
- One call for both: `{{ snippet('name', {params}) }}`, with host/global fallback resolution.
- Editable from the admin, as **flat files**, and **translatable per host**.

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

[](#installation)

```
composer require pushword/snippet
php bin/console doctrine:schema:update --force
```

Usage
-----

[](#usage)

```
{{ snippet('footer-note') }}
{{ snippet('cta', { title: 'Ready to start?', buttonText: 'Contact us' }) }}
```

Documentation
-------------

[](#documentation)

See [pushword.piedweb.com/extension/snippet](https://pushword.piedweb.com/extension/snippet).

The Pushword ecosystem
----------------------

[](#the-pushword-ecosystem)

Pushword is a modular CMS — one [Symfony](https://symfony.com) bundle for the core and one bundle per feature. Pick only what you need:

**Core**

- [pushword/core](https://github.com/Pushword/core) — Symfony-based CMS core: Page, Media &amp; User entities, Markdown + Twig rendering.

**Editing &amp; admin**

- [pushword/admin](https://github.com/Pushword/admin) — EasyAdmin interface to manage pages, media and users.
- [pushword/admin-block-editor](https://github.com/Pushword/admin-block-editor) — Gutenberg-like block editor (stores Markdown).
- [pushword/advanced-main-image](https://github.com/Pushword/advanced-main-image) — Hero images &amp; main-image format control.
- [pushword/template-editor](https://github.com/Pushword/template-editor) — Edit Twig templates online.
- **pushword/snippet** — Reusable content fragments &amp; components. *(this package)*

**Content &amp; workflow**

- [pushword/flat](https://github.com/Pushword/flat) — Flat-file (Markdown + Git) CMS mode.
- [pushword/version](https://github.com/Pushword/version) — Page &amp; snippet versioning.
- [pushword/page-update-notifier](https://github.com/Pushword/page-update-notifier) — Email alerts on content changes.
- [pushword/conversation](https://github.com/Pushword/conversation) — Comments, contact &amp; newsletter forms.

**Publishing &amp; performance**

- [pushword/static-generator](https://github.com/Pushword/static-generator) — Export a static website (GitHub Pages, Apache, FrankenPHP).
- [pushword/search](https://github.com/Pushword/search) — SQLite full-text search (Loupe), zero infra.
- [pushword/page-scanner](https://github.com/Pushword/page-scanner) — Find dead links, 404s, redirects &amp; TODOs.
- [pushword/api](https://github.com/Pushword/api) — Token-authenticated REST API.

**Tooling**

- [pushword/installer](https://github.com/Pushword/installer) — Project &amp; package installer.
- [pushword/js-helper](https://github.com/Pushword/js-helper) — Front-end JavaScript helpers.

Full list and guides on [pushword.piedweb.com/extensions](https://pushword.piedweb.com/extensions).

Contributing
------------

[](#contributing)

If you're interested in contributing to Pushword, please read our [contributing docs](https://pushword.piedweb.com/contribute) before submitting a pull request.

Credits
-------

[](#credits)

- [PiedWeb](https://piedweb.com)
- [All Contributors](https://github.com/Pushword/Core/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://pushword.piedweb.com/license#license) for more information.

[![PHP Packages Open Source](https://raw.githubusercontent.com/Pushword/Pushword/f5021f4c5d5d3ab3f2858ec2e4bdd70818806c6a/packages/admin/src/Resources/assets/logo.svg)](https://dev.piedweb.com)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance99

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

###  Release Activity

Cadence

Every ~0 days

Total

18

Last Release

8d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/afce4cf517928a50560237f1410d5957271fd808671b2216687ecf1422adaee0?d=identicon)[Robin D.](/maintainers/Robin%20D.)

---

Top Contributors

[![RobinDev](https://avatars.githubusercontent.com/u/3944894?v=4)](https://github.com/RobinDev "RobinDev (9 commits)")

---

Tags

cmscomponentsphppushwordreusablesnippetssymfonytwig

### Embed Badge

![Health badge](/badges/pushword-snippet/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[wmde/php-vuejs-templating

PHP implementation of Vue.js templating engine

3041.6k2](/packages/wmde-php-vuejs-templating)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

291.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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