class ArikaimStore

Arikaim store

Constants

HOST

SIGNUP_URL

LOGIN_API_URL

PACKAGE_VERSION_URL

PACKAGE_DOWNLOAD_URL

ORDER_REGISTER_URL

ORDER_TYPE_ENVATO

Properties

protected string $configFile Data config file name
protected Config $config Config

Methods

__construct(string $configfileName = 'arikaim-store.php')

Constructor

static Self
create()

Create obj

Collection
getConfig()

Get config refernce

string|null
getPackageKey(string|null $repository)

Get package key

bool
isLogged()

Return true if cust have account token

array
getProduct()

Get orders

array
getPackages()

Get packages

void
clear()

Init data

bool
logout()

Logout (deletes user token)

array
toArray()

Convert config data to array

bool
hasCurl()

Is curl installed

mixed
fetchPackages(string $type, string|null $page = '1', string $search = '')

Fetch packages list

mixed
fetchPackageDetails(string $uuid)

Fetch package details

string
getPackageDetailsUrl(string $uuid)

Gte package details requets url

string
getPackageVersionUrl(string $packageName)

Get package version url

string
getSignupUrl()

Get signup url

string
getLoginUrl()

Get signup url

Details

at line 49
__construct(string $configfileName = 'arikaim-store.php')

Constructor

Parameters

string $configfileName

at line 65
static Self create()

Create obj

Return Value

Self

at line 75
Collection getConfig()

Get config refernce

Return Value

Collection

at line 86
string|null getPackageKey(string|null $repository)

Get package key

Parameters

string|null $repository

Return Value

string|null

at line 107
bool isLogged()

Return true if cust have account token

Return Value

bool

at line 119
array getProduct()

Get orders

Return Value

array

at line 131
array getPackages()

Get packages

Return Value

array

at line 143
void clear()

Init data

Return Value

void

at line 157
bool logout()

Logout (deletes user token)

Return Value

bool

at line 167
protected array toArray()

Convert config data to array

Return Value

array

at line 177
bool hasCurl()

Is curl installed

Return Value

bool

at line 190
mixed fetchPackages(string $type, string|null $page = '1', string $search = '')

Fetch packages list

Parameters

string $type
string|null $page
string $search

Return Value

mixed

at line 204
mixed fetchPackageDetails(string $uuid)

Fetch package details

Parameters

string $uuid

Return Value

mixed

at line 217
string getPackageDetailsUrl(string $uuid)

Gte package details requets url

Parameters

string $uuid

Return Value

string

at line 228
string getPackageVersionUrl(string $packageName)

Get package version url

Parameters

string $packageName

Return Value

string

at line 236
string getSignupUrl()

Get signup url

Return Value

string

at line 244
string getLoginUrl()

Get signup url

Return Value

string