antoniogweb / php2xai
AI framework with a PHP frontend and a C++ runtime.
v0.5.1
2026-09-01 09:48 UTC
Requires
- php: >=8.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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.
- Introduction and architecture
- Installation
- First model
- Tensors and operations
- Computational graph
- Datasets and batches
- Training
- PHP and C++ runtimes
- Inference and model serialization
- Dropout and training mode
- Custom models
- Extending the runtime
- Debugging
- Tokenizer
- SIMD and Eigen migration
- Exercises and example projects
Quick start
use PHP2xAI\Tensor\Tensor; $x = Tensor::zeros([2, 3]);
Browse the complete guide starting with Introduction and architecture.