When intense laser beams interact with solid targets, high-energy photons are effectively generated via radiation reaction effect. These photons receive a large portion of the incident laser energy, and the energy transport by photons through the target is crucial for the understanding of the laser–matter interactions. In order to understand the energy transport, we newly developed a Particle-in-Cell code which includes the photon–matter interactions by introducing photon macro-particles. Test simulations are performed and compared with simulations using a particle transport code, which shows a good agreement.