A Brooklyn cop fired 11 bullets into the door of his girlfriend’s apartment yesterday while the woman and her two children were inside, according to police and a family friend.

No one was hurt when Officer Joel Rodriguez fired off the barrage of shots on the 10th floor of the building on Kent Avenue in Williamsburg just after midnight, authorities said.

The woman, whose name was withheld, called 911, and Rodriguez – a two-year veteran assigned to the 90th Precinct in Williamsburg – was still there when cops arrived, sources said. Officers took the young cop to St. Vincent’s Hospital for psychiatric evaluation.

Rodriguez, 26, and the woman, had been arguing all day – via text messages – before he stormed the apartment, sources said. The door is made of metal and it was not clear if any of the bullets penetrated. Most of the shots appeared to be aimed at the lock.

Through a family friend who answered her door last night, the woman declined comment.

“She’s very delicate right now. She has two daughters and she doesn’t want them to hear [any more] about this,” the friend said.

The friend said the daughters, who are from a previous relationship, were inside when the shots were fired.

A neighbor said he spotted Rodriguez and the woman together – appearing jovial – outside her apartment on Friday.

“They were horsing around,” said neighbor Tom Zygmunt. “He was grabbing her by the arm, but she was smiling. It was OK.”

Zygmunt’s father, Ledl, said cops told him that he won’t be seeing Rodriguez again.

“I was scared [when the shots rang out], but the cops came around and told me he will not be coming back ever again,” he said.

The officer was suspended and charged with criminal possession of a weapon, criminal mischief and reckless endangerment.