Add composer.json file, move main code into src/, update example.