phproberto/joomla-common

Common libraries to interact with Joomla!

dev-master 2017-07-14 11:53 UTC

This package is auto-updated.

Last update: 2024-04-10 13:10:39 UTC


README

100% unit tested libraries to develop Joomla! extensions.

Build Status Code Coverage Scrutinizer Code Quality

STILL NOT READY FOR PRODUCTION

Quickstart

Sample usage:

use Phproberto\Joomla\Client\Client;

// Get the active client
$client = Client::getActive();

// Check if we are in backend
if ($client->isAdmin())
{
	// Do something
}

// Check if we are in frontend
if ($client->isSite())
{
	// Do something
}

// Retrieve client base folder
echo 'Base application folder is ' . $client->getFolder();

// Retrieve frontend client
$site = Client::site();

// Retrieve backend client
$admin = Client::admin();

Requirements

  • PHP 5.5+
  • Joomla! CMS v3.7+

License

This library is licensed under GNU LESSER GENERAL PUBLIC LICENSE.

Copyright (C) 2017 Roberto Segura López - All rights reserved.