Download the PHP
package luminjo/php-sdk without Composer
On this page you can find all versions of the php package
luminjo/php-sdk. 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.
A stable version will eventually be released one day...
Create a client
Usage
Verify that you are able to make API requests
Create a ticket
find tickets
You wille receive an array response :
get faq (behavior is the same as on the website : index get highlited questions)
Response :
Faq categories
Response :
Ticket types
Tickets can be more than simple tickets, for example when you get a customer call. Remember, only tickets type 1 should be visible for a customer, other types are hidden.
ticket: 1
call: 2
meet: 3
other: 4
Error handling
Every API call must be try catched to handle client errors. The LuminjoException contain the response, the error code and a message.
The message is for the developper, the code can help you to show a proper error message to the end user.
Codes
1: Rate limit exceeded. You are doing too many requests, you should wait 60 secondes before the next.
2: Not allowed. Your current plan doesn't allow you to use the API.
3: Authentification failed. The API keys are probably wrong.
Keep in mind that codes can be added in the future.
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 luminjo/php-sdk contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.