People use Laravel Collections or similar Symfony array wrapper to achieve chaining.
Most PHP code I see look like your Ruby example.