Download the PHP package ristekusdi/kisara-php without Composer

On this page you can find all versions of the php package ristekusdi/kisara-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kisara-php

Kisara (Keycloak Service Account)

Keycloak Service Account library with minimum PHP version 7.2. Adapted from Keycloak REST API.

All class extends a Base class which is a class to get ADMIN_URL, BASE_URL, REALM, authentication to get token, and ACCESS_TOKEN.

Get Started

In each class, you need to set a config (array value) to get data you need. Here's the available options:

Notes: Admin url and base url in your Keycloak may same url or maybe different.

Available Classes and Methods

Client

get

Get all client with or without parameters.

findById

Get a client by id of client NOT clientId.

store

Store a client.

update

Update a client by id of client NOT clientId.

delete

Delete client by id of client NOT clientId.

getServiceAccountUser

Get service account user from a client with id of client NOT clientId.

userSessions

Get current user sessions that belongs to the client.

ClientRole

get

Get roles of client by id of client NOT clientId. Parameters are optional.

store

Store a role to a client by id of client NOT clientId.

getUsers

Get users from a client role with id of client and role name. Parameters are optional.

getGroups

Get groups from a client role with id of client and role name. Parameters are optional.

ClientSecret

get

Get client secret of client by id of client NOT clientId.

update

Update client secret of client by id of client NOT clientId.

DeviceActivity

get

Get list of devices the user is logged on to.

endAllSession

End all logged in session from device.

endSession

End logged in session from device by session id.

Group

get

Get groups with or without parameters.

findById

Get a single group by id of group.

store

Store a group.

delete

Delete a group by id of group.

members

Get members of group by id of group. Parameters are optional.

getRoleMappings

Get group role mappings by group id.

GroupClientRole

getAvailableRoles

Get available roles of client role in a group.

storeAssignedRoles

Store assigned roles of client role to a group.

getAssignedRoles

Get assigned roles of client role from a group.

deleteAssignedRoles

Delete assigned roles of client role from a group.

getEffectiveRoles

Get effective roles of client role from a group.

Key

get

Get all key from Keycloak realm settings.

getRSA256PublicKey

Get RSA 256 Public Key from Keycloak realm settings.

Role

findById

Find a role by id of role.

update

Update a role by id of role.

delete

Delete a role by id of role.

Session

delete

Delete session logged in user by session id.

User

get

Get users with or without parameters.

findById

Find user by id of user.

store

Store a user.

update

Update a user.

groups

Get groups belong to user with id of user.

resetCredentials

Reset user credentials.

UserClientRole

getAvailableRoles

Get available roles of client role in a user.

storeAssignedRoles

Store assigned roles of client role to a user.

getAssignedRoles

Get assigned roles of client role from a user.

deleteAssignedRoles

Delete assigned roles of client role from a user.

getEffectiveRoles

Get effective roles of client role from a user.

UserGroup

attach

Attach a group to a user.

detach

Detach a group from a user.


All versions of kisara-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ristekusdi/kisara-php contains the following files

Loading the files please wait ....