Download the PHP package tamkeenlms/tamkeelms-api without Composer

On this page you can find all versions of the php package tamkeenlms/tamkeelms-api. 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 tamkeelms-api

About

This is the documentation for the official Tamkeen LMS API client. You can use this API client to do a couple of simple operations like retrieving the courses and submitting a new request for one of these courses.

Installation

You can install this library using Composer:

Now, in your code you will need to initiate the API by setting up the basic request information i.e the API key and the base URI for the API.

The base uri should be the full path to the API uri, for example: https://example.com/app/public/api/v1/. The API key will be given to you by the copy owner or by Tamkeen LMS team.

Requests

Getting the company's list of branches

Tamkeen supports working with multiple branches (locations of the same company or organization), each branch has its own courses, batches, lectures ... etc, and of course its own list of website courses. So you will need to represent this on your application and separate between the data from each branch. This request returns a list of the branches added on the system, each with the id and the name. You will need to use this request to fetch a list of the branches so that the user could pick from when for exampling signing up for a course.

Example:

Example response:

Getting the courses

First you need to understand that we have two different data models here; a Course and a Website Course. A course is the training course registered on the system, and a Website Course is the model which encapsulates the Course and carries its properties on the website, that IF it was SELECTED to be shown on the website! So, the returned list will hold both the Course and the Website Course, the first being passed within the later one as shown below in the sample request.

Tamkeen LMS supports multi branches, so each course is added to the application is added under a branch, also the courses are grouped by categories. So, when fetching any group of courses you will need to pass ids of both the branch and the category. As for the the ids for the branch and the category you can retrieve them through other requests mentioned below.

The response returned will look like this:

As you can see, the response returned accounts for pagination, which means you can simply paginate through the courses simply by passing the page's number in the uri. Example: GET courses?branch=1&category=1&page=2 This request will return the page 2 of the full list. Each page has 20 courses.

Getting one course

You can fetch the information of one course only through this request

Getting the courses categories

The courses are categorized on Tamkeen LMS end, and when retrieving a list of the courses you will need to specify the category for the targeted courses, by id. Here is how to fetch the full list of these categories:

Example response:

Submitting a course request (sign up)

Through your application and using our API you can list and view the courses stored on Tamkeen LMS's database, but also you can submit a course request (made by one of your app's users) to be stored and viewed on our end. You will be responsible for building the form and validating the user's input, and then submit it to us. Of course you will need to attach the id of the course (which the user requested, and which represents the Website course, not the Course itself) along with the request.

The data you can ask for in your form is: the course (=course_id), name (=name), phone number (=phone_number), email (=email), the job title (=job_title), note (=note). Of course only the course_id, name, and phone_number values are required. You don't need to submit the id of the branch here because we can find it based on the course you selected.

The user when submitted will be added to a temporary list on under the specified website course, and after filtering can be added to the course's actual waiting list on the application.

Example:

The information you will send via the API will pass a strict validation rules, and if the validation fails an error will be returned with the validation messages. Example:

You can display these error messages for the user so that he could check his/her input for the returned errors.

If the signup process was successful the API will return:

Or the following on failure:

Help

We are more than willing to help you with Tamkeen LMS API, please contact us anytime with any questions you have at [email protected], or simply open a new issue here at this repo for code issues, bugs and feature requests.

Thanks, and good luck.

Tamkeen LMS Team

tamkeenlms.com


All versions of tamkeelms-api with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.3
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 tamkeenlms/tamkeelms-api contains the following files

Loading the files please wait ....