/bhbst

Primary LanguagePHP

PHP

Install

Nix

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.

Composer

If you did not install nix, besure that composer is installed then

composer i

Run the test server

You can run the test server on port 8080 with

php -S localhost:8080

Then visit the test server http://localhost:8080

Provides 2 classes for custom reordering of Paragrahps

Task 1

	$reorder = new ParagraphReordererByLen();
	$reorderedText = $reorder->reorder($originalText);

Task 2

	$reorder = new ParagraphReordererCustomAlapha();
	$reorderedText = $reorder->reorder($originalText);

See the test cases

AI Usuage disclosure.

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

TODO

  • 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.