Photo switch / transistor - any suggestions?

In my experience, compact circuits aren't. The circuit posted is cool but using an ATTiny would reduce parts and connections count, would it not?