PHPackages                             cecil/theme-netlify - 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. cecil/theme-netlify

ActiveCecil-theme

cecil/theme-netlify
===================

Cecil component theme Netlify

2.2.1(11mo ago)024.0k↓50%3MITTwig

Since Oct 15Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/Cecilapp/theme-netlify)[ Packagist](https://packagist.org/packages/cecil/theme-netlify)[ GitHub Sponsors](https://github.com/ArnaudLigny)[ Fund](https://opencollective.com/cecil)[ RSS](/packages/cecil-theme-netlify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (31)Used By (3)

Netlify component theme
=======================

[](#netlify-component-theme)

The *Netlify* component theme for [Cecil](https://cecil.app) provides support of Netlify's [`_redirects`](https://docs.netlify.com/routing/redirects/) and [`_header`](https://docs.netlify.com/routing/headers/).

After installation and without any configuration, this component theme generate:

1. a [`_redirects`](./layouts/_default/page.netlify_redirects.twig) file containing HTML's redirections created by Cecil (automatic or created manually with the [`redirect`](https://cecil.app/documentation/content/#redirect) front matter variable)
2. a [`_headers`](./layouts/_default/page.netlify_headers.twig) file containing HTTP headers created by Cecil (generated from [`headers' configuration`](https://cecil.app/documentation/configuration/#headers))

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

[](#installation)

```
composer require cecil/theme-netlify
```

> Or [download the latest archive](https://github.com/Cecilapp/theme-netlify/releases/latest/) and uncompress its content in `themes/netlify`.

Usage
-----

[](#usage)

Add `netlify` in the `theme` section of your site configuration:

```
theme:
  - netlify
```

### Add redirections

[](#add-redirections)

```
netlify:
  redirects:
    - from: https://xxxxxx/*
      to: https://xxxxxx/:splat
      status: 301 # optional
      force: true # optional
```

Refer to [Netlify documentation](https://docs.netlify.com/routing/redirects/redirect-options/) for details.

#### Redirect home page to the user language version

[](#redirect-home-page-to-the-user-language-version)

```
netlify:
  redirect_by_language: true # false by default
```

It generate the following redirect for each available language (other than the default):

```
/  //    302!    Language=

```

*Example:*

```
/  /fr/    302!    Language=fr

```

> The language can be specified in the cookie `nf_lang`, so you can override the default behavior with JavaScript (in case of a language dropdown selector for example).

### Add headers

[](#add-headers)

```
server:
  headers:
    - path:  # Relative path, prefixed with a slash. Support "*" wildcard.
      headers:
        - key:
          value: ""
```

Document: .

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance57

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

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

Recently: every ~49 days

Total

30

Last Release

341d ago

Major Versions

1.x-dev → 2.0.02023-12-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/52a734f97ce4ef72fb07b59e5d0f7f6a26a0b322da49b881bedc3896c5e7f128?d=identicon)[aligny](/maintainers/aligny)

---

Top Contributors

[![ArnaudLigny](https://avatars.githubusercontent.com/u/80580?v=4)](https://github.com/ArnaudLigny "ArnaudLigny (47 commits)")

---

Tags

cecilcecil-theme-componentnetlifythemececilnetlify

### Embed Badge

![Health badge](/badges/cecil-theme-netlify/health.svg)

```
[![Health](https://phpackages.com/badges/cecil-theme-netlify/health.svg)](https://phpackages.com/packages/cecil-theme-netlify)
```

PHPackages © 2026

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