If you just want simple SSR from 5v to ?, and ultimately trigger a relay, look at the Opto22 modules, they usually come very cheap on ebay, especially the legacy one, they have interface boards for 4,8,16,24 modules, 5v in and all kinds of output DC.AC etc.
If using a relay the inversion can be...