PHPackages                             carbon/firstelement - 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. carbon/firstelement

ActiveNeos-carbon[Utility &amp; Helpers](/categories/utility)

carbon/firstelement
===================

Get a boolean value returned if a content element is the first element in a ContentCollection or not

2.1.0(1y ago)06.3k↓50%1GPL-3.0

Since Oct 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/CarbonPackages/Carbon.FirstElement)[ Packagist](https://packagist.org/packages/carbon/firstelement)[ Fund](https://www.paypal.me/Jonnitto/20eur)[ GitHub Sponsors](https://github.com/jonnitto)[ RSS](/packages/carbon-firstelement/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/6cc4df156ce701106834b06fd6ea019e384fc30b124cc9cf5560d5d34449dd47/68747470733a2f2f706f7365722e707567782e6f72672f636172626f6e2f6669727374656c656d656e742f762f737461626c65)](https://packagist.org/packages/carbon/firstelement)[![Total Downloads](https://camo.githubusercontent.com/2992f86cb6f640d6319b3b8043688d04c352bb21731893fba5feec540251f8fc/68747470733a2f2f706f7365722e707567782e6f72672f636172626f6e2f6669727374656c656d656e742f646f776e6c6f616473)](https://packagist.org/packages/carbon/firstelement)[![License](https://camo.githubusercontent.com/130f3d322df30b18a954048739bacecbe447dccd03f282c423c55e9fd572e8d1/68747470733a2f2f706f7365722e707567782e6f72672f636172626f6e2f6669727374656c656d656e742f6c6963656e7365)](LICENSE)[![GitHub forks](https://camo.githubusercontent.com/a2c7a225d2c257b766ad3e908e478dcb12725e3864385ea478283a7dc3c7c7e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f436172626f6e5061636b616765732f436172626f6e2e4669727374456c656d656e742e7376673f7374796c653d736f6369616c266c6162656c3d466f726b)](https://github.com/CarbonPackages/Carbon.FirstElement/fork)[![GitHub stars](https://camo.githubusercontent.com/d670052e482c3156128fa229438aa5634d4a2d90426195a9173670df052e6fa2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f436172626f6e5061636b616765732f436172626f6e2e4669727374456c656d656e742e7376673f7374796c653d736f6369616c266c6162656c3d5374617273)](https://github.com/CarbonPackages/Carbon.FirstElement/stargazers)[![GitHub watchers](https://camo.githubusercontent.com/0c8c3a40bce56bd40693868bbeca11ef6c992b6f7439237cc69daaec4bb531dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f77617463686572732f436172626f6e5061636b616765732f436172626f6e2e4669727374456c656d656e742e7376673f7374796c653d736f6369616c266c6162656c3d5761746368)](https://github.com/CarbonPackages/Carbon.FirstElement/subscription)

Carbon.FirstElement Package for Neos CMS
========================================

[](#carbonfirstelement-package-for-neos-cms)

Get a boolean value returned if a content element is the first element in a ContentCollection or not. Great for automated headlines (`h1` or `h2`)

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

[](#installation)

`Carbon.FirstElement` is available via packagist. Add `"carbon/firstelement" : "^1.0"`to the require section of your composer.json or run `composer require carbon/firstelement`.

Usage
-----

[](#usage)

If you add the super type `Carbon.FirstElement:Mixin` to a node type definition, you activate the FlowQuery in the prototype `Carbon.FirstElement:Mixin`. Every `Neos.Neos:Content` and `Neos.Neos:ContentComponent` get automatically the property `isFirstElement`. If you want to extend another prototype you can do it like this:

```
prototype(Your.Package:Content) {
    isFirstElement = Carbon.FirstElement:Mixin
}
```

License
-------

[](#license)

Licensed under MIT, see [LICENSE](LICENSE)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance47

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~477 days

Recently: every ~509 days

Total

6

Last Release

391d ago

Major Versions

1.2.0 → 2.0.02022-03-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/5fec51ac160a110a31a72a54ac29e276a447d8306205a052d35491ac9cf0589b?d=identicon)[jonnitto](/maintainers/jonnitto)

---

Top Contributors

[![jonnitto](https://avatars.githubusercontent.com/u/4510166?v=4)](https://github.com/jonnitto "jonnitto (8 commits)")

---

Tags

carbonfusionhelperneoscmshelpercarbonflowNeosFUSION

### Embed Badge

![Health badge](/badges/carbon-firstelement/health.svg)

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

###  Alternatives

[carbon/includeassets

Include your assets (css, js) in an easy way into Neos

14228.6k10](/packages/carbon-includeassets)[shel/neos-colorpicker

A plugin for Neos CMS which provides a colorpicker editor

1494.4k6](/packages/shel-neos-colorpicker)[shel/neos-hyphens

A plugin for Neos CMS which provides hyphens for the inline editor

20200.7k1](/packages/shel-neos-hyphens)

PHPackages © 2026

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