I was in a short queue, behind two young men, with no-one behind me. The bus was about to leave, but I saw that the busdriver had noticed me and stepped up, expecting him to open the door.
However he instead continued to close the door (his view of the door was abscured by two men he was selling tickets to, so he may not have been aware that my foot was on the bus). I moved backwards, but not fast enough, and my leg was caught in the door, knocking me backwards into the gutter, leaving my foot caught in the closed door, scattering my laptop and bags into the puddles (it had recently been raining heavily).
Fortunately, as I said, the bus driver knew I was there, so he opened the door, freeing me. He then proceeded to shout at me from the driver's booth that it was my fault. It was only when he noticed that I was still (far too stunned by what had happened to react) on the ground that he came out to help me to my feet. He explained to me that getting onto a bus when the doors are closing is dangerous, adding, "well you've found that out now".
He was anxious that I hadn't been injured, and repeatedly asked me if I was alright.
He did not, though, at any point apologise for deliberately closing his bus door on me, trapping my foot and knocking me over backwards into the gutter.
While I appreciate that sticking to schedules on rainy evenings is difficult, and one more passenger trying to get on can be annoying (although there was plenty of space on his bus) I do think that reacting in this way could potentially be very dangerous.
As it happens, all I suffered was wet and dirty clothing, some bruises and damage to my shopping, but landing heavily on the ground could easily have injured me severely. Perhaps you could please stress to the driver that closing his door on a person to try and persuade them not to get on his bus can be dangerous?
Although, to pass his words back to him, I expect he's found that out now.