I did something similar with my truck a few years back.... 2001 4.0 manual that had the imfamous timing chain slap/rattle from 40k to 110k. Explored my options....replace chains/guides/tensioners at a shop for $1500...replace engine myself with low-mile junkyard engine(found a '06 w/ auto engine with 1,000 on the clock for $1000. It was worth the 200mi drive and mini vaca to go get it). My choice was a no-brainer. I'm basing my suggestions on my experience with my similar in nature swap.
Since you're just swapping the engine, the trans you have and the engine donor truck has isn't much of a concern except in the engine wiring harness department. You'll need to run your factory harness. There may be some sensor pigtail differences like mine, so be sure to get your engine with the engine harness just in case. Most newer yard engines automatically come with the harness. You DO NOT need the 2011 PCM, you can use your factory one. Most yards that have late model cars in their yards, have pretty darn good computer interchange systems and parts networks. It could probably bring up this 2011 2.3 engine in a 2007 2.3 search.
I suggest getting ahold of a factory wiring diagram book for both years or at minimum, copies from one. It helped my swap quite a bit while I was making the mistake of trying to make the '06 auto harness work on my '01 manual....needless to say, I couldn't confuse the PCM and I regret that but I learned to fall in love with soldering! Made one perfect harness out of two partial harnesses. haha.
I know my info may be a little overkill for you since you will not be doing the swap yourself, but too much info in this case, is still good info. lol. On such a new truck being a 2007, why is there the need for the swap?