Method to log in to Memberhub.com and retrieve roster via PHP
Budget: $10 – $30 USD
I am looking for a programmer with experience using the PHP language to develop a class to log into Memberhub.com and retrieve rosters. This system must be able to log in automatically and retrieve rosters without any manual login needed. No need for any export capabilities as the rosters will remain in their native format.
Must use php 8.0 and follow standard best practices (parameter types, return types, etc.)
This should be a single file php script that, given a memberhub site url, username and password, your script will log into Memberhub.com, export a roster of members, and returns csv file as a string string (which is the normal file spreadsheet format). See the attached screenshot.
I will proved you with a test username and password.
The delivered code should look something like this (you fill in the blanks)
<?php
declare(strict_types=1);
namespace Memberhub;
use Exception;
class MemberhubUtils {
/*** @return string the whole downloaded csv file
* @throws Exception when can't log in with meaningful message
*/
static public function GetRosterAsCsv(string $memberhubUrl_withLeadingHttps, string $username, string $password): string {
}
}
Must use php 8.0 and follow standard best practices (parameter types, return types, etc.)
This should be a single file php script that, given a memberhub site url, username and password, your script will log into Memberhub.com, export a roster of members, and returns csv file as a string string (which is the normal file spreadsheet format). See the attached screenshot.
I will proved you with a test username and password.
The delivered code should look something like this (you fill in the blanks)
<?php
declare(strict_types=1);
namespace Memberhub;
use Exception;
class MemberhubUtils {
/*** @return string the whole downloaded csv file
* @throws Exception when can't log in with meaningful message
*/
static public function GetRosterAsCsv(string $memberhubUrl_withLeadingHttps, string $username, string $password): string {
}
}