Download the PHP package getkey/licencephp without Composer
On this page you can find all versions of the php package getkey/licencephp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download getkey/licencephp
More information about getkey/licencephp
Files in getkey/licencephp
Package licencephp
Short Description getkey is a license management application that can be used by everyone
License MIT
Informations about the package licencephp
GetKey PHP API Client Library
Support: Framework Laravel, Ci
Introduction
The GetKey PHP API Client Library allows the integration of various data validation features into your applications. For more information, please visit getkey.my.id.
Requirements
To use the GetKey API client, you need the following:
- A GetKey account
- An Application project created with a generated API key
Installation
To begin using the GetKey PHP API Client library, follow these installation steps:
With Composer
-
Install the library using Composer:
- Include the Composer autoloader in your PHP script:
Without Composer
-
Download the library and add it to your project.
- Include the file
vendor/autoload.php
in your PHP script:
If you experience errors, then try adding this
require_once __DIR__ . '../vendor/getkey/licencephp/src/LicenceManager.php';
Getting Started
To start validating and using the API, create a Traits system in your framework. You need to create a licence first on the getkey.my.id site, then you can use the licence name to call the licence API.
Full Example of License Validation
Create a trait to manage and validate the licence:
Setting Services
Add this setting to the service configuration, for example in config/services.php for Laravel:
Alternatively, you can set it in your .env file:
- LICENCE_ENDPOINT=https://getkey.my.id/api/v1/getLicence
Example of Validation in Controller
Response Class
The Response class is returned with every request, providing methods to handle responses as detailed in the library documentation.
Testing
getkey is still in beta stage, and you can try it right now. report any bugs in the class licence or api. please note:
for api endpoints it has not been validated with token, only validated by licencename, but with hashing security... then the licence is used by one user, it cannot be used by two users in one project.