Generic MODX service class and collection of utilities, used by the modmore team, but also available for third party developers.

v1.0.2 2022-04-21 03:53 UTC

This package is auto-updated.

Last update: 2023-01-07 18:36:17 UTC


Alpacka by modmore is a base service class for MODX packages, and a (growing) collection of common utilities for MODX packages. It is meant to be included as a composer package.

Build Status

To use Alpacka, your base service class will need to extend the modmore\Alpacka\Alpacka class. There is a (very) simple example service implementation in tests/Example.php.

The service class includes a Pimple dependency injection container as $class->services.

Documentation (work in progress) can be found in the wiki.


composer require modmore/alpacka

Contributions are more than welcome

To contribute to Alpacka you will first need to install the local dependencies:

composer install

Please follow the existing coding style. In particular:

  • Array properties and MODX settings are in snake_case
  • Variable, property and method names are in camelCase
  • Inline documentation please! At the very least PHPDoc on every method and public properties.

One pull request per feature/improvement/bugfix.