phproberto / joomla-common
Common libraries to interact with Joomla!
dev-master
2017-07-14 11:53 UTC
Requires
- php: >=5.5.0
Requires (Dev)
- joomla/registry: ^1.4.5
- phpunit/phpunit: ^4.8.35
This package is auto-updated.
Last update: 2025-03-10 15:07:37 UTC
README
100% unit tested libraries to develop Joomla! extensions.
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.