PHPackages                             brainsum/c2distro-project - 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. brainsum/c2distro-project

ActiveProject

brainsum/c2distro-project
=========================

Template for creating c2distro project via composer.

1.0.x-dev(5mo ago)0108[1 PRs](https://github.com/brainsum/c2distro-project/pulls)GPL-2.0-or-laterShellPHP &gt;=8.1

Since May 20Pushed 5mo ago5 watchersCompare

[ Source](https://github.com/brainsum/c2distro-project)[ Packagist](https://packagist.org/packages/brainsum/c2distro-project)[ RSS](/packages/brainsum-c2distro-project/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

c2distro - Composer template
============================

[](#c2distro---composer-template)

Composer template to kickstart C2 projects.

This template was based on the following:

- [Drupal composer project](https://github.com/drupal-composer/drupal-project)
- [Drupal recommended project](https://www.drupal.org/docs/develop/using-composer/starting-a-site-using-drupal-composer-project-templates)
- [Thunder distro](https://github.com/thunder/thunder-project).

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

[](#installation)

Note: These commands have been tested on linux (ubuntu), they might need changes to work on other systems. Note: In the host needs to be composer and min requirement for docker-compose version is 1.27.4.

### Native composer

[](#native-composer)

For the latest release:

```
composer create-project brainsum/c2distro-project my-c2distro-project
```

For a dev release:

```
composer create-project brainsum/c2distro-project --stability=dev my-c2distro-project
```

Setup
-----

[](#setup)

### App

[](#app)

Drupal itself is in the `app` folder, you need to use `composer install` there, too. Note, when using the supplied docker stack, on `app` is mounted in the container.

### Environment variables

[](#environment-variables)

By default, the project depends on some environment variables. See the [settings.php scaffold file](./composer/c2distro/assets/default.settings.php) as well the files in the [settings folder](./settings).

### (Optional) Docker-compose

[](#optional-docker-compose)

If you want to use docker-compose for development, you should copy `example.env` as `.env`, e.g `cp example.env .env`. Update its contents as required.

For starting and stopping the environment you can use the helper scripts provided with the project (`startup.sh` and `shutdown.sh`). These also look for a `docker-compose.local.yml` file so you can version control a generic config file and do local overrides (e.g ports, mounts).

### Drush

[](#drush)

To be able to make a db backup: Copy `app/drush/local/example.drush.yml` as `app/drush/local/drush.yml`. Update its contents as required.

### Filesystem permission fixes

[](#filesystem-permission-fixes)

E.g. on linux, you must fix file and directory permissions as well, e.g for "private\_files", "web/sites/default/files", "tmp", ...

### Install

[](#install)

Use `drush site-install --account-pass=somestrongpass --site-mail=mail@currentsite.com --site-name=c2distro c2distro -y`

You also might want to add `--account-name` and `--account-mail`.

Usage
-----

[](#usage)

### Main site

[](#main-site)

Upload your assets and that's it. You can download them, images can be styled for social media purposes, logo can be added, etc.

### API

[](#api)

The JSON:API module has been enabled, so you can serve your assets through that. An example would be using the [FileField Sources JSON API ](https://www.drupal.org/project/filefield_sources_jsonapi) module that allows you to configure file fields to allow downloading files from c2distro directly via the API.

Development
-----------

[](#development)

For development info see the [DEVELOPMENT.md](./DEVELOPMENT.md) file.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance70

Regular maintenance activity

Popularity9

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

166d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15192295?v=4)[Máté Havelant](/maintainers/mhavelant)[@mhavelant](https://github.com/mhavelant)

![](https://avatars.githubusercontent.com/u/9446343?v=4)[szatom](/maintainers/szatom)[@szatom](https://github.com/szatom)

![](https://www.gravatar.com/avatar/e22c1d0aded93173ee302fe7433fc40e51637bc4ec58d75bdd2b6b43e5f97048?d=identicon)[petermester-brainsum](/maintainers/petermester-brainsum)

---

Top Contributors

[![mhavelant](https://avatars.githubusercontent.com/u/15192295?v=4)](https://github.com/mhavelant "mhavelant (9 commits)")[![petermester-brainsum](https://avatars.githubusercontent.com/u/73826765?v=4)](https://github.com/petermester-brainsum "petermester-brainsum (9 commits)")[![kosailma](https://avatars.githubusercontent.com/u/19393447?v=4)](https://github.com/kosailma "kosailma (7 commits)")[![szatom](https://avatars.githubusercontent.com/u/9446343?v=4)](https://github.com/szatom "szatom (7 commits)")[![pedro-p](https://avatars.githubusercontent.com/u/4059784?v=4)](https://github.com/pedro-p "pedro-p (2 commits)")

### Embed Badge

![Health badge](/badges/brainsum-c2distro-project/health.svg)

```
[![Health](https://phpackages.com/badges/brainsum-c2distro-project/health.svg)](https://phpackages.com/packages/brainsum-c2distro-project)
```

###  Alternatives

[drupal/recommended-project

Project template for Drupal projects with a relocated document root

1502.6M1](/packages/drupal-recommended-project)[vardot/varbase-project

Project template for Varbase distribution.

5362.2k](/packages/vardot-varbase-project)[centarro/commerce-kickstart-project

Centarro Commerce Kickstart 5.x project template

3116.2k](/packages/centarro-commerce-kickstart-project)[apigee/devportal-kickstart-project

Composer project template for the Apigee Developer Portal Drupal distribution.

1124.7k](/packages/apigee-devportal-kickstart-project)[fourkitchens/sous-drupal-project

Starter project for Sous a Drupal distribution featuring a theme based on Emulsify Design System.

151.0k](/packages/fourkitchens-sous-drupal-project)[docomoinnovations/cloud_orchestrator

Cloud orchestrator distribution by DOCOMO Innovations, Inc.

108.4k](/packages/docomoinnovations-cloud-orchestrator)

PHPackages © 2026

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