This app was mentioned in 1 comment, with an average of 1.00 upvote
Using a scanner or a slit-scan camera (there's at least one app for this for Android) would be the simplest method. Replicating it with Photoshop alone will require a lot of manual work, especially if you want it to look organic like in the examples.
Of course, if you're proficient with a programming language, you could probably conjure a custom filter to emulate this effect. The principle would be the same as with the scanner and slit-cam methods.