This repository contains R code for fitting phase-type distributions, inspired by the matrixdist package (Bladt & Yslas, 2021). The implementation uses an object-oriented approach and leverages C++ for performance improvements through the Rcpp package. Matrix computations are optimized using Armadillo.