PHPackages                             bellinatiperez/recommended-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bellinatiperez/recommended-project

ActiveProject[Utility &amp; Helpers](/categories/utility)

bellinatiperez/recommended-project
==================================

Project template for Mautic 6 projects with composer

6.0.79(3mo ago)0271GPL-2.0-or-later

Since Mar 1Pushed 3mo agoCompare

[ Source](https://github.com/bellinatiperez/recommended-project)[ Packagist](https://packagist.org/packages/bellinatiperez/recommended-project)[ Docs](https://www.mautic.org/mautic-releases)[ Fund](https://github.com/sponsors/mautic)[ Fund](https://opencollective.com/mautic)[ RSS](/packages/bellinatiperez-recommended-project/feed)WikiDiscussions feat/add\_plugin\_evolution Synced 1mo ago

READMEChangelog (1)Dependencies (61)Versions (137)Used By (0)

Composer template for Mautic projects
=====================================

[](#composer-template-for-mautic-projects)

This project template provides a starter kit for managing your Mautic dependencies with [Composer](https://getcomposer.org/).

Usage
-----

[](#usage)

First you need to [install composer 2](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).

> Note: The instructions below refer to the [global composer installation](https://getcomposer.org/doc/00-intro.md#globally). You might need to replace `composer` with `php composer.phar` (or similar) for your setup.

After that you can create the project:

```
composer create-project mautic/recommended-project:^5.0 some-dir --no-interaction

```

With `composer require ...` you can download new dependencies to your installation.

Example of installing a plugin:

```
cd some-dir
composer require mautic/helloworld-bundle

```

The `composer create-project` command passes ownership of all files to the project that is created. You should create a new git repository, and commit all files not excluded by the .gitignore file.

What does the template do?
--------------------------

[](#what-does-the-template-do)

When installing the given `composer.json` some tasks are taken care of:

- Mautic will be installed in the `docroot`-directory.
- Autoloader is implemented to use the generated composer autoloader in `vendor/autoload.php`, instead of the one provided by Mautic (`docroot/vendor/autoload.php`).
- Plugins (packages of type `mautic-plugin`) will be placed in `docroot/plugins/`
- Themes (packages of type `mautic-theme`) will be placed in `docroot/themes/`
- Creates `docroot/media`-directory.
- Creates environment variables based on your .env file. See [.env.example](.env.example).

Updating Mautic Core
--------------------

[](#updating-mautic-core)

This project will attempt to keep all of your Mautic Core files up-to-date; the project [mautic/core-composer-scaffold](https://github.com/mautic/core-composer-scaffold)is used to ensure that your scaffold files are updated every time mautic/core is updated. If you customize any of the "scaffolding" files (commonly .htaccess), you may need to merge conflicts if any of your modified files are updated in a new release of Mautic core.

Follow the steps below to update your core files.

1. Run `composer update mautic/core --with-dependencies` to update Mautic Core and its dependencies.
2. Run `git diff` to determine if any of the scaffolding files have changed. Review the files for any changes and restore any customizations to `.htaccess` or others.
3. Commit everything all together in a single commit, so `docroot` will remain in sync with the `core` when checking out branches or running `git bisect`.
4. In the event that there are non-trivial conflicts in step 2, you may wish to perform these steps on a branch, and use `git merge` to combine the updated core files with your customized files. This facilitates the use of a [three-way merge tool such as kdiff3](http://www.gitshah.com/2010/12/how-to-setup-kdiff-as-diff-tool-for-git.html). This setup is not necessary if your changes are simple; keeping all of your modifications at the beginning or end of the file is a good strategy to keep merges easy.

FAQ
---

[](#faq)

### Should I commit the contributed plugins I download?

[](#should-i-commit-the-contributed-plugins-i-download)

Composer recommends **no**. They provide [argumentation against but also workrounds if a project decides to do it anyway](https://getcomposer.org/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md).

### Should I commit the scaffolding files?

[](#should-i-commit-the-scaffolding-files)

The [Mautic Composer Scaffold](https://github.com/mautic/core-composer-scaffold) plugin can download the scaffold files (like index.php, .htaccess, …) to the docroot/ directory of your project. If you have not customized those files you could choose to not check them into your version control system (e.g. git). If that is the case for your project it might be convenient to automatically run the mautic-scaffold plugin after every install or update of your project. You can achieve that by registering `@composer mautic:scaffold` as post-install and post-update command in your composer.json:

```
"scripts": {
    "post-install-cmd": [
        "@composer mautic:scaffold",
        "..."
    ],
    "post-update-cmd": [
        "@composer mautic:scaffold",
        "..."
    ]
},
```

### How can I apply patches to downloaded plugins?

[](#how-can-i-apply-patches-to-downloaded-plugins)

If you need to apply patches (depending on the project being modified, a pull request is often a better solution), you can do so with the [composer-patches](https://github.com/cweagans/composer-patches) plugin.

To add a patch to Mautic plugin foobar insert the patches section in the extra section of composer.json:

```
"extra": {
    "patches": {
        "mautic/foobar": {
            "Patch description": "URL or local path to patch"
        }
    }
}
```

### How do I specify a PHP version ?

[](#how-do-i-specify-a-php-version-)

This project supports PHP 7.4 as minimum version, however it's possible that a `composer update` will upgrade some package that will then require PHP 7+ or 8+.

To prevent this you can add this code to specify the PHP version you want to use in the `config` section of `composer.json`:

```
"config": {
    "sort-packages": true,
    "platform": {
        "php": "7.4"
    }
},
```

### How do I use another folder than docroot as webroot

[](#how-do-i-use-another-folder-than-docroot-as-webroot)

By default the composer.json file is configures to put all Mautic core, plugin and theme files in the `docroot` folder.
It is possible to change this folder to your own needs.

In following examples, we will change `docroot` into `public`.

##### New installations

[](#new-installations)

- Run the `create-project` command without installing ```
    composer create-project mautic/recommended-project:^4.0 some-dir --no-interaction --no-install
    ```
- Do a find and replace in the `composer.json` file to change `docroot/` into `public/`.
- Review the changes in the `composer.json` file to ensure there are no unintentional replacements.
- Run `composer install` to install all dependencies in the correct location.

##### Existing installations

[](#existing-installations)

- move the `docroot/` to `public/````
    mv docroot public
    ```
- Do a find and replace in the `composer.json` file to change `docroot/` into `public/`.
- review the changes in the `composer.json` file to ensure there are no unintentional replacements.
- run `composer update --lock` to ensure the autoloader is aware of the changed folder.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance82

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor3

3 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

Every ~11 days

Recently: every ~5 days

Total

128

Last Release

92d ago

Major Versions

5.2.7 → 6.0.32025-07-01

6.0.3 → 7.0.0-alpha2025-08-04

5.x-dev → 6.0.92025-09-29

6.0.10 → 7.x-dev2025-10-19

0.0.48 → 6.0.482025-11-28

### Community

Maintainers

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

---

Top Contributors

[![RCheesley](https://avatars.githubusercontent.com/u/2930593?v=4)](https://github.com/RCheesley "RCheesley (37 commits)")[![escopecz](https://avatars.githubusercontent.com/u/1235442?v=4)](https://github.com/escopecz "escopecz (35 commits)")[![mollux](https://avatars.githubusercontent.com/u/3983285?v=4)](https://github.com/mollux "mollux (35 commits)")[![nickveenhof](https://avatars.githubusercontent.com/u/161341?v=4)](https://github.com/nickveenhof "nickveenhof (29 commits)")[![kuzmany](https://avatars.githubusercontent.com/u/462477?v=4)](https://github.com/kuzmany "kuzmany (9 commits)")[![nick-vanpraet](https://avatars.githubusercontent.com/u/7923739?v=4)](https://github.com/nick-vanpraet "nick-vanpraet (8 commits)")[![matbcvo](https://avatars.githubusercontent.com/u/1006437?v=4)](https://github.com/matbcvo "matbcvo (5 commits)")[![shinde-rahul](https://avatars.githubusercontent.com/u/1046788?v=4)](https://github.com/shinde-rahul "shinde-rahul (3 commits)")[![patrykgruszka](https://avatars.githubusercontent.com/u/8580942?v=4)](https://github.com/patrykgruszka "patrykgruszka (2 commits)")[![mabumusa1](https://avatars.githubusercontent.com/u/12627658?v=4)](https://github.com/mabumusa1 "mabumusa1 (1 commits)")[![coreyworrell](https://avatars.githubusercontent.com/u/162595?v=4)](https://github.com/coreyworrell "coreyworrell (1 commits)")[![bellinatiperez](https://avatars.githubusercontent.com/u/232886648?v=4)](https://github.com/bellinatiperez "bellinatiperez (1 commits)")

### Embed Badge

![Health badge](/badges/bellinatiperez-recommended-project/health.svg)

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

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

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