Download the PHP package cognifit/cognifit-sdk-php without Composer

On this page you can find all versions of the php package cognifit/cognifit-sdk-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 cognifit-sdk-php

cognifit-sdk-php

Description

This library helps developers to connect with CogniFit API(https://api.cognifit.com).

CogniFit API allows CogniFit partners to integrate CogniFit Assessment Batteries and Training Games seamless into their own websites. CogniFit partners can be clinicians, hospitals, schools, universities, researchers and associates.

Reference

Health Check

User registration

Create new user account

Associate existing user account

If the user already exists in CogniFit, their account can be associated. Redirect the user to the url returned by this method.

If the user accepts to associate the CogniFit accout with the partner, the user_token will be sent back to the callback_url provided.

The callback_url must be one of the callback urls communicated to CogniFit when the partner was created.

State parameter is a hash generated by the partner. This value will be added to the callback response.

User authentication

Issue user access token

Use access token to access CogniFit

User manager

Update user account

User activation

If a user was previously deactivated, this method will set it to activated. Users need to be activated to log in CogniFit. Activate a user is not allocating any license or program to that user.

User deactivation

Allows to deactivate users and free their licenses. As long as users are deactivated, their cognitive information can not be reached nor can they log in CogniFit.

User grant training subscription

Allows to activate monthly recurring subscriptions for users. User will have access to all training programs and all games. By default, the personalised training will be set as training program.

User cancel training subscription

Allows to deactivate monthly recurring subscriptions for users. User will have access until the end of his subscription period. After that subscription will not be renewed and user will not have anymore access to trainings and games.

User account deletion

Allows to delete user accounts. User data would be removed. User would not be able to access CogniFit anymore with this account. The partner would not be able to access user data. Partners are only able to delete accounts created by them.

Cognitive assessments

Assessments list

List of allowed assessment keys to use when setting a program.

Single task assessment list

List of allowed single task assessment keys to use when setting a program.

Questionnaires list

List of allowed questionnaire keys to use when setting a program.

Brain training Programs

Training list

List of allowed training keys to use when setting a training program.

Brain Games

Brain Game list

List of allowed games keys to use when starting a unique game session.

Cognitive Skill list

List of cognitive skills measured and trained by CogniFit.

Login & Launch

After obtaining a user access token, it must be used before it expires:

  1. by getting a url with next method and redirect there the user
  2. by using CogniFit Launcher SDK for JavaScript to embed CogniFit in your site

Training program

Assessment, Single Task Assessment & Questionnaire program

Task program

Activity and evolution report

Get Historical Skills

Get Played Games


All versions of cognifit-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 cognifit/cognifit-sdk-php contains the following files

Loading the files please wait ....