Theory:

Personification is a figure of speech, a poetic device in which human attributes are given to animals, non-living things or ideas. The objects speak/behave like humans, with human emotions in such cases.
Example:
Personifying animals:
  1. The cat asked the mouse for a dinner treat.
  2. The dog asked his master to let him inside.
Personifying ideas:
  1. Love is blind.
  2. His anger oozed out in his words.
Personifying non-living things:
  1. The popcorn popped out of the bowl immediately in the oven.
  2. The sun shined and smiled upon us, early in the morning.
Uses of personification:
  1. When human qualities are given to objects, the writer/poet can convey the meaning easily.
  2. The understanding of the idea is made easier when objects are personified.
  3. It helps to build a character around the object.
  4. Makes the text/poetry more interesting and fun to read.
  5. Literal meanings are to be ignored in such cases.
Personificationused in the poem "Firework Night":
 
The pet dog is the animal which is given human attributes in this poem. The poem is written in such a way that the dog speaks and lets his master know about his fears.
 
The feelings attributed to the dog are fright, gratitude, faithfulness and love.
    Example:
  • I can't bear that.
  • What shall I do?
  • Hear me yelp.
  • I'm trembling here.
  • Don't you love me anymore?
  • Guard you safely all night.
The same feelings could not have been expressed easily if it had not been personified. The dog's activities might be running around nervously, licking the hand, and crouching behind the couch - but the feelings were beautifully expressed through the dialogues of the dog.