Download the PHP package stacey/patricia-client-package without Composer
On this page you can find all versions of the php package stacey/patricia-client-package. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download stacey/patricia-client-package
More information about stacey/patricia-client-package
Files in stacey/patricia-client-package
Download stacey/patricia-client-package
More information about stacey/patricia-client-package
Files in stacey/patricia-client-package
Vendor stacey
Package patricia-client-package
Short Description This package enables easy setup for a client structure on patricia
License MIT
Package patricia-client-package
Short Description This package enables easy setup for a client structure on patricia
License MIT
Please rate this library. Is it a good library?
Informations about the package patricia-client-package
Patricia-Client-Package
PHP library for Patricia Technologies for management of client and client key
Installation
Run Migration
Run migration
Patricia::migrate();
or
$patricia->migrate();
Drop Table
Patricia::rollbackMigrate();
or
$patricia->rollbackMigrate();
Rollback Seeder
Patricia::rollbackSeeders();
or
$patricia->rollbackSeeders();
Create Client
Patricia::createClient(string $clientName, string $clientRole)
or
$patricia->createClient(string $clientName, string $clientRole)
clientRole is either `admin` or `user`
Create Client Key
Patricia::createClientKey(int $clientId, string $clientKeyName);
$patricia->createClientKey(int $clientId, string $clientKeyName);
Update Client
Patricia::updateClient(string $ClientUuid, array $array);
$patricia->updateClient(string $ClientUuid, array $array);
$array should contain the columns and respective values;
example $array = [
'name' => 'Patricia King',
'is_blocked' => 1
];
Update Client Keys
Patricia::updateClientKeys(int $clientKeyId, array $array);
$patricia->updateClientKeys(int $clientKeyId, array $array);
$array should contain the columns and respective values;
example $array = [
'name' => 'Patricia King Key',
'is_blocked' => 1
];
Get Client Detail
get a client details based on column attribute
Patricia::getClient(string $columnName, string $columnValue);
$patricia->getClient(string $columnName, string $columnValue);
$array should contain the columns and respective values;
example $array = [
'name' => 'Patricia King Key',
'is_blocked' => 1
];
Get Client Keys Detail
returns all instances of a client key
Patricia::getClientKeys(int $clientKeyId);
$patricia->getClientKeys(int $clientKeyId);
Get Client key Detail
returns the first instance of a client key
Patricia::getClientKey(int $clientKeyId);
$patricia->getClientKey(int $clientKeyId);
Delete client
Patricia::deleteClient(string $clientUuid);
$patricia->deleteClient(string $clientUuid);
Delete client key
Patricia::deleteClientKey(int $clientKeyId);
$patricia->deleteClientKey(int $clientKeyId);
Helper functions
Check if user is admin
isAdmin(string $apiKey)
Check if user is authenticated
isAuthenticated(string $apiKey)
Get a client details
getClient(string $prop, string $value)
`prop represents a column`
`value represents the value for query`
License
Released under the MIT License. See the bundled LICENSE file for details.
Contributions
Open to contributions from anyone, PR's can be made and would be accepted. Thanks and good luck
All versions of patricia-client-package with dependencies
PHP Build Version
Package Version
The package stacey/patricia-client-package contains the following files
Loading the files please wait ....