WesanoxFrameworkPackage by wesanox

The Framework Package Module for Processwire made by wesanox. It implements the standard frontend frameworks.

Wesanox Framework Package

A lightweight ProcessWire module for loading essential frontend frameworks (CSS and JS) with minimal setup.
This module includes common libraries and provides simple methods to output the corresponding <link> and <script> tags.


Included Frontend Libraries


The following frameworks are bundled and automatically available:

  • AOS 2.3.1 (Animate on Scroll)
  • Swiper 11.2.8 (Touch slider)
  • Bootstrap 5.3.6 (CSS framework)
  • jQuery 3.7.1

These files are stored in the module’s internal styles/ and scripts/ folders.


Usage


Output styles:

echo $modules->WesanoxFrameworkPackage->renderStyles();

Output scripts:

echo $modules->WesanoxFrameworkPackage->renderScripts();

These methods generate <link> and <script> tags for all configured assets only if the files exist.


Internal Configuration


The module uses internal arrays to define which files to load:

protected array $styles = [
    'global_aos',
    'global_swiper',
    'global_bootstrap',
];

protected array $scripts = [
    'global_jquery',
    'global_aos',
    'global_swiper',
    'global_bootstrap.bundle',
];

You can customize these lists in your module file to control which assets are included.


File Structure


Files must be named according to this convention:

  • CSS: [name].css → in site/modules/WesanoxFrameworkPackage/styles/
  • JS: [name].js → in site/modules/WesanoxFrameworkPackage/scripts/

Only files that physically exist will be included in the output.


Requirements


  • ProcessWire 3.x
  • PHP 8.1 or higher

License


GPL-3.0

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #579
    The 579th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
    Weekly.pw / 14 June 2025
  • New ProcessWire admin redesign
    When you upgrade to ProcessWire 3.0.248 or newer (currently the dev branch), you’ll immediately notice something new and beautiful…
    Blog / 9 May 2025
  • Subscribe to weekly ProcessWire news

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.