# vk-com/kphp-kdb

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/vk-com-kphp-kdb).**

6,072 stars · 213 forks · C · GPL-2.0

## Links

- GitHub: https://github.com/vk-com/kphp-kdb
- awesome-repositories: https://awesome-repositories.com/repository/vk-com-kphp-kdb.md

## Description

kphp-kdb is a NoSQL database engine and PHP extension designed for high-throughput read and write operations. It functions as a persistence layer integrated directly into the PHP runtime, providing a non-relational storage system for high-load environments.

The project incorporates a compiler that translates dynamic PHP source code into statically typed C++ code. This process eliminates runtime interpretation overhead to achieve native execution speeds and lower resource consumption.

The system leverages native C++ bindings and a schema-less storage engine to ensure low-latency data access. These capabilities are centered on high-load data storage and the optimization of PHP execution through static code translation.

## Tags

### Data & Databases

- [Non-Relational Data Storage](https://awesome-repositories.com/f/data-databases/non-relational-data-storage.md) — Provides a high-performance NoSQL storage engine using a schema-less architecture for high-throughput operations.
- [Low-Latency Data Retrieval](https://awesome-repositories.com/f/data-databases/low-latency-data-retrieval.md) — Minimizes data access times by integrating a persistence layer directly into the PHP runtime.
- [NoSQL Databases](https://awesome-repositories.com/f/data-databases/nosql-databases.md) — Provides a high-performance non-relational storage system designed for high-throughput read and write operations.
- [Persistence Layers](https://awesome-repositories.com/f/data-databases/persistence-layers.md) — Provides a persistence layer embedded directly into the PHP runtime for low-latency data access.
- [Schema-less Storage Engines](https://awesome-repositories.com/f/data-databases/schema-less-model-integrations/schema-less-storage-engines.md) — Implements a flexible, schema-less storage engine optimized for high-throughput read and write operations.

### Programming Languages & Runtimes

- [C++ Function Bindings](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/native-c-interoperability/c-function-bindings/c-function-bindings.md) — Connects high-level PHP interfaces to the C++ engine using direct low-level memory mappings and function calls.
- [PHP Runtime Optimization](https://awesome-repositories.com/f/programming-languages-runtimes/php-application-servers/performance-optimization/php-runtime-optimization.md) — Increases PHP execution speed by translating dynamic source code into native C++.
- [PHP Extension Bindings](https://awesome-repositories.com/f/programming-languages-runtimes/php-extension-bindings.md) — Implements a persistence layer as a PHP extension using native C++ bindings for low-latency access.
- [PHP to C++ Translation](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/c-source-translators/configuration-to-c-translation/php-to-c-translation.md) — Converts PHP source code into C++ to increase execution speed and overall system performance. ([source](https://github.com/vk-com/kphp-kdb/blob/master/README))
- [PHP to Native Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/native-code-backends/bytecode-to-c-backends/php-to-native-compilers.md) — Converts PHP scripts into statically typed C++ code to achieve native execution speeds.
- [Source-to-C Transpilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/source-to-c-transpilers.md) — Translates dynamic PHP source code into static C++ code to eliminate runtime interpretation overhead.
- [Source-to-Source Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-to-source-compilers.md) — Translates dynamic PHP source code into statically typed C++ to eliminate runtime interpretation overhead.
- [Static Code Translation](https://awesome-repositories.com/f/programming-languages-runtimes/static-code-translation.md) — Transforms high-level dynamic PHP scripts into static typed C++ code to eliminate interpretation overhead.

### Operating Systems & Systems Programming

- [C++ Core Implementations](https://awesome-repositories.com/f/operating-systems-systems-programming/c-core-implementations.md) — Implements core database logic in C++ to achieve maximum runtime performance and resource efficiency.
- [Database Engine Backends](https://awesome-repositories.com/f/operating-systems-systems-programming/compiled-core-processing/database-engine-backends.md) — Executes core database logic and data processing in a compiled language to maximize runtime efficiency.
