Download the PHP package codelockpro/sdk without Composer

On this page you can find all versions of the php package codelockpro/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.
Please rate this library. Is it a good library?

Informations about the package sdk

codelockpro/sdk

Pure server-side, modular PHP SDK — the CodeLockPro client framework on the server. Ships with the knowledge base as a built-in module and includes portal/community module factories for forum operations; additional modules plug into the same CodeLockPro instance through the same registration surface.

Install

Source repository. This package is published to Packagist from a read-only subtree mirror at mbos01/codelockpro-sdk-php. The canonical source lives in mbos01/codelockpro under sdk/php/ — open issues and PRs there.

License. The SDK is proprietary and may only be used in combination with an active CodeLockPro account. See LICENSE.

Architecture invariants

  1. Modular foundation. The core has no per-module coupling.
  2. Pure library. No framework binding (Laravel, Symfony, vanilla PHP — the developer wires the routes).
  3. Zero web-framework dependencies. Only ext-curl and ext-json.

Usage

$client->kb() is a convenience accessor for $client->module('kb'). The core has no KB-specific code path.

Registering more modules

Module author contract

A module factory is any callable(ModuleContext): object. The context exposes:

Modules namespace their events as <ctx->name>.<event> so listeners stay unambiguous when many modules are registered.

Knowledge base — module one

Mapped to the unified, secured KB REST surface (every call requires an OAuth bearer carrying kb:read for reads and kb:write for writes; view tracking is kb:read):

Each call returns the raw decoded JSON body as an associative array. On a non-2xx response the client throws CodeLockPro\CodeLockProApiException carrying the HTTP status and response body.

Portal module (canonical)

Register the canonical portal module via the same module contract:

Community module (backward-compatible alias)

Register the community module via the same module contract:

Mapped to the upstream portal forum API surface:

Events emitted on the shared bus are namespaced with the registered module name:

When registered as portal, event names are emitted as:

Migration (community → portal)

Legacy community naming is preserved for backward compatibility. New PHP integrations should use portal naming.

Legacy Canonical
CodeLockPro\Modules\Community CodeLockPro\Modules\Portal
$client->community() $client->portal()
$client->register('community', ...) $client->register('portal', ...)

Deprecation policy and timeline:

Integrator migration checklist:


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-json Version *
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 codelockpro/sdk contains the following files

Loading the files please wait ...