PHP Classes

PHP Joomla Login: Authenticate users of a Joomla installation

Recommend this page to a friend!
  Info   View files Documentation   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 66 This week: 1All time: 10,320 This week: 571Up
Version License PHP version Categories
habjoomlalogin 1.0.0Freeware5PHP 5, User Management, Web services
Description 

Author

This class can authenticate users of a Joomla installation.

It can send a HTTP request to a script in a Joomla installation that verifies if the password is valid of a given user.

The script hab-joomla-login.php is provided by this package and must be installed in the target Joomla installation.

Innovation Award
PHP Programming Innovation award nominee
January 2017
Number 2


Prize: One downloadable copy of CodeLobster Professional
Joomla is a popular content management system. Joomla has its own user account system.

This package can be used to authenticate users with login and password in a remote Joomla installation.

It sends a HTTP request to a script in this package to be installed in the remote Joomla site and it verifies if the given user login and password are correct.

This way you can implement Web applications with an existing user system from a given Joomla site you control.


Manuel Lemos
Picture of Haseeb Ahmad Basil
  Performance   Level  
Name: Haseeb Ahmad Basil is available for providing paid consulting. Contact Haseeb Ahmad Basil .
Classes: 11 packages by
Country: Pakistan Pakistan
Age: 26
All time rank: 6147 in Pakistan Pakistan
Week rank: 33 Up1 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Documentation

HabJoomlaLogin

Joomla Login functionality for external sources.

Installation

Copy files from joomla-site directory to the root of your Joomla website.

Copy files from other-site directory to where you want to access this API from.

How To Use

Send POST params user and pass to hab-joomla-login.php located inside joomla-site. And it will return user data like json_encoded: username, name, email etc.

To use script inside other-site. Simply include the HabJoomlaLogin.php, to your code and call the HabJoomlaLogin class. here is an example:

<?php

include "path/to/HabJoomlaLogin.php";
//Login Data username and password
$data = [
		"user" => "user123";
		"pass" => "pass123";
	];
//Path to the hab-joomla-login.php located on the server with Joomla installation.
$pathJoomla = "path/to/hab-joomla-login.php";

//Contains the array with user information
$login = HabJoomlaLogin::doLogin($data, $pathJoomla);

  Files folder image Files  
File Role Description
Files folder imagejoomla-site (1 file)
Files folder imageother-site (1 file)
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  joomla-site  
File Role Description
  Accessible without login Plain text file hab-joomla-login.php Example Example script

  Files folder image Files  /  other-site  
File Role Description
  Plain text file HabJoomlaLogin.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:66
This week:1
All time:10,320
This week:571Up