Getting Started

CodeLockr provides enterprise-grade code encryption for PHP, JavaScript, TypeScript, and Next.js. Follow these four steps to get started:

STEP 01

Create an Account

Sign up to get your API key and access the encryption dashboard.

Register
STEP 02

Encrypt Your Files

Upload a source file and choose a protection level.

STEP 03

Install a Loader

Install the official CodeLockr runtime via Composer or npm.

STEP 04

Deploy

Replace your source files with encrypted versions. Deploy as normal.

Loader Installation

PHP Loader (Composer)

Install the official PHP runtime via Composer:

composer require codelockr/runtime

Usage in PHP (no manual require needed if you use CodeLockr’s wrappers):

<?php
// Auto-loaded by codelockr/runtime
include 'encrypted-file.clr.php';
Loader missing error: Uncaught Error: CodeLockr\Runtime\clr_exec not found

Node.js & Next.js Loader (NPM)

Install the official Node.js runtime via npm:

npm install @codelockr/runtime

The loader is automatically loaded by .clr.js wrappers. No manual require needed.

// Auto-loaded by @codelockr/runtime
const myModule = require('./encrypted-file.clr.js');
Loader missing error: Error: CODELOCKR: Runtime not installed. Run: npm install @codelockr/runtime
Compatible with Node.js 14+, Next.js 12+, PHP 7.4-8.3, Laravel, WordPress, Symfony.

REST API

The REST API is currently postponed. No ETA yet. Use the web UI to encrypt files.

Error Messages

Runtime Errors

ErrorPlatformCauseSolution
CodeLockr\Runtime\clr_exec not found PHP Composer package not installed or not auto-loaded composer require codelockr/runtime
CODELOCKR: Runtime not installed. Run: npm install @codelockr/runtime Node.js NPM package not installed npm install @codelockr/runtime

Protection Levels

LevelEncryptionObfuscationOverheadUse Case
Weak-Basic~1%Internal tools
MediumAES-128Advanced~3%Most apps
MaxAES-256-GCMMaximum~5%Production
Full
Soon
AES-256 + HW bindUltimate~8%High-value IP

FAQ

How do I update the loader?

composer update codelockr/runtime for PHP,
npm update @codelockr/runtime for Node.js.

Can I decrypt my files?

No. Always backup original source files. Encrypted files execute only via loader.

What if loader is missing?

Files refuse to execute with clear error messages. The loader must be installed and auto-loaded.

Does it slow down code?

No. One-time memory decryption. Runtime performance equals the original script.

Support?

Email us at hello@codeforgex.studio