Need help implementing this PHP library in my Project

For a class assignment I have to build a calculator that uses a PHP backend logic to calculate the user input. I came across this library on GitHub that is a perfect fit for my requirement;

https://github.com/chriskonnertz/string-calc

From what I understand I can simply send an user input string (e.g. ’64*5′) from HTML to the calculate() function in StringCalc.php to evaluate a result that I can display back to HTML.

My problem however is I am unable to setup a index.php file that can create an StringCalc oject so that I can use it’s function calculate() for user input that I may fetch using $_POST. (I have attached a screenshot of what I am writing in index.php).
index.php file code

I created an empty directory and then used composer as stated in README of this repo.

composer require chriskonnertz/string-calc

In the base folder I created an index.php file (I have attached a screenshot for reference) and included StringCalc.php using its relative path.

But I keep getting this error:

“Fatal error: Uncaught Error: Class “ChrisKonnertzStringCalcContainerServiceProviderRegistry” not found in C:xampphtdocsStringCalcvendorchriskonnertzstring-calcsrcChrisKonnertzStringCalcStringCalc.php:68 Stack trace: #0 C:xampphtdocsStringCalcindex.php(5): ChrisKonnertzStringCalcStringCalc->__construct() #1 {main} thrown in C:xampphtdocsStringCalcvendorchriskonnertzstring-calcsrcChrisKonnertzStringCalcStringCalc.php on line 68″empty folder pulled code using composer
Error as displayed in browser