If you want to use nix you can install Nix and then run nix-shell
This will give all the tools and the PHP version that I have installed.
If you did not install nix, besure that composer is installed then
composer i
You can run the test server on port 8080
with
php -S localhost:8080
Then visit the test server http://localhost:8080
$reorder = new ParagraphReordererByLen();
$reorderedText = $reorder->reorder($originalText);
$reorder = new ParagraphReordererCustomAlapha();
$reorderedText = $reorder->reorder($originalText);
See the test cases
From the requirements:
Please do not use any AI tools like ChatGPT or Gemini, etc., but you can use Google for search.
I did not use any LLM tools for the coding. I did use LLM to translate the requirements document from PDF to Markdown for easier reading inside of IDE. I also have a plugin that uses LLM to suggest commit messages, that was also used. All the code was written with out LLMs
- Add an API to call the methods
- Make a simple UI
- Style the UI
- More advanced UI with React
- Add documentation on how to run server
- Add documentation on installing dependecies.