2017 © Pedro PelĂĄez
 

library joomla-module

Library to interact and develop Joomla! modules

image

phproberto/joomla-module

Library to interact and develop Joomla! modules

  • Thursday, June 22, 2017
  • by phproberto
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Joomla! Module by Phproberto

Base classes to develop Joomla! Modules., (*1)

Build Status Code Coverage Scrutinizer Code Quality, (*2)

STILL NOT READY FOR PRODUCTION, (*3)

What?

Have you ever seen something like this?, (*4)

// Include the latest functions only once
JLoader::register('ModArticlesLatestHelper', __DIR__ . '/helper.php');

$list            = ModArticlesLatestHelper::getList($params);
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8');

require JModuleHelper::getLayoutPath('mod_articles_latest', $params->get('layout', 'default'));

Wouldn't be better to be able to just use something like this?, (*5)

JLoader::registerPrefix('ModArticlesLatest', __DIR__);

echo ModArticlesLatestModule::getInstance($module->id)->setParams($params)->render();

Modules are the only part where Joomla! doesn't use OOP. Start using these module classes now and take advantage of its benefits., (*6)

Requirements

  • PHP 5.4+ Due to the use of traits
  • Joomla! CMS v3.7+

Benefits

  • Modules are only loaded once from database.
  • Support for legacy templates system (99% backward compatible) and JLayoutFile layouts.
  • Easily and transparently load & save module parameters.
  • Unit tested to ensure that your modules are never broken.
  • Built over years of experience dealing with Joomla! modules.
  • 100% Opensource.

Documentation

Check docs for detailed documentation., (*7)

License

This library is licensed under GNU/GPL 2 license., (*8)

Copyright (C) 2017 Roberto Segura LĂłpez - All rights reserved., (*9)

The Versions

22/06 2017

dev-master

9999999-dev

Library to interact and develop Joomla! modules

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.4.0

 

The Development Requires