Sample application

I am very new to this project and need some help from more experienced developers or vendors. Tried to publish my item to codecanyon market, but it was hardly rejected. Seems it doesn’t meet necessary requirements. I am not even sure or guess how standalone php project should look like, which comments through code it should have or which documentation (installation or user manuals) should include. Will be very happy if someone provides me with a sample project with all necessary requirements. Thank you in advance.