Search by

antoniogweb / php2xai

antoniogweb

AI framework with a PHP frontend and a C++ runtime.

Package info

github.com/antoniogweb/PHP2xAI

Language:C++

pkg:composer/antoniogweb/php2xai

Statistics

Installs: 16

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

v0.5.1 2026-09-01 09:48 UTC

This package is auto-updated.

Last update: 2026-09-25 19:24:34 UTC


README

AI framework with a PHP frontend and a C++ runtime, designed for training and inference of custom neural networks.

PHP handles dataset preparation, computational graph configuration, and training orchestration, while the C++ runtime performs high-performance numerical computation. PHP2xAI is built for experimentation, full architectural control, and integration into web-based applications.

Installation

composer require antoniogweb/php2xai

Technical documentation

The complete technical guide is available below. Each chapter is linked directly from this README.

  1. Introduction and architecture
  2. Installation
  3. First model
  4. Tensors and operations
  5. Computational graph
  6. Datasets and batches
  7. Training
  8. PHP and C++ runtimes
  9. Inference and model serialization
  10. Dropout and training mode
  11. Custom models
  12. Extending the runtime
  13. Debugging
  14. Tokenizer
  15. SIMD and Eigen migration
  16. Exercises and example projects

Quick start

use PHP2xAI\Tensor\Tensor;

$x = Tensor::zeros([2, 3]);

Browse the complete guide starting with Introduction and architecture.