PHPackages                             dartmoon/prestashop-module - 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. dartmoon/prestashop-module

ActivePrestashop-module

dartmoon/prestashop-module
==========================

PrestaShop module by Dartmoon

v0.6.1(2y ago)0341MITPHP

Since Mar 19Pushed 2y ago2 watchersCompare

[ Source](https://github.com/dartmoon-io/prestashop-module)[ Packagist](https://packagist.org/packages/dartmoon/prestashop-module)[ RSS](/packages/dartmoon-prestashop-module/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

Prestashop Module - Boilerplate
===============================

[](#prestashop-module---boilerplate)

Simplify the creation of PrestaShop modules unleashing the power of PHP packages without worrying about the package version.

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

[](#installation)

1. Create a new module using this boilerplate. We suggest to use PHP 7.3 (this was the maximum version before PrestaShop 8)

```
composer create-project dartmoon/prestashop-module yourmodulename
```

This will trigger the customization command: just answer the questions!

For the module name we suggest not to use hyphens or other other "word-delimiting" characters.

2. Install the module inside PrestaShop (execute the following command from the root of your PrestaShop installation)

```
php bin/console prestashop:module install yourmodulename
```

Done!

Usage
-----

[](#usage)

Write your module as you would have done before!

Install PHP package
-------------------

[](#install-php-package)

Nothing different from what you usually do!

```
composer require namespace/package
```

After the installation is completed the prefixing process will start. It will scan the vendor directory and prefix all classed with the prefix you configured inside the `composer.json` file.

Keep in mind that not all packages work well after they have been prefixed (even if the majority of them will), for this reason you can follow the next step and decide to exlude some folders from the prefixing process.

Prevent prefixing of some packages
----------------------------------

[](#prevent-prefixing-of-some-packages)

If your installed package does not work well once prefixed you can exclude it from the prefixing process.

To do so you need to edit the file `scooper.inc.php`.

Behind the scenes we are using [PHP-Scoper](https://github.com/humbug/php-scoper), so you can follow their documentation for configuration.

Build
-----

[](#build)

Once you have completed your package, it's time to build it.

To do so you just need to execute

```
composer build-module
```

The building process will create a zip file inside the root of your module with all the production code. That is your compiled module.

### Changing the copyright notice

[](#changing-the-copyright-notice)

Inside the root of your module, you will find a file called `copyright.txt` which contains the copyright notice to apply in the header of each file of your module.

To change it, simply edit that file.

### Excluding files from the build

[](#excluding-files-from-the-build)

Sometimes you have some development files inside your module that you don't want to include in the build. To exclude them you can simply use edit the `excludes.txt` file.

We already compiled it with some sensible default values!

License
-------

[](#license)

This project is licensed under the MIT License - see the LICENSE.md file for details

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

Recently: every ~220 days

Total

8

Last Release

985d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2efeef5805499c8446aee9d5cbb924e27978d6efceff1cb0d4865ffd2e937d86?d=identicon)[alessandro1105](/maintainers/alessandro1105)

---

Top Contributors

[![alessandro1105](https://avatars.githubusercontent.com/u/4523050?v=4)](https://github.com/alessandro1105 "alessandro1105 (50 commits)")

---

Tags

boilerplateprestashop

### Embed Badge

![Health badge](/badges/dartmoon-prestashop-module/health.svg)

```
[![Health](https://phpackages.com/badges/dartmoon-prestashop-module/health.svg)](https://phpackages.com/packages/dartmoon-prestashop-module)
```

PHPackages © 2026

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