aldaflux/pgsql-doctrine-random-function
RANDOM(), saving dev time while maintaining compatibility with Doctrine ORM.RANDOM() for testing).shuffle()).For Executives:
"This lightweight package lets us leverage PostgreSQL’s RANDOM() function directly in queries—enabling features like randomized recommendations or A/B testing without heavy backend work. It’s a 10-minute setup that unlocks database-driven randomness, reducing server load and speeding up development for personalized content or sampling use cases."
For Engineers:
"We’re adding a Doctrine DQL function to support RANDOM() in PostgreSQL queries. This avoids fetching all records to shuffle them in PHP and works seamlessly with existing Doctrine queries. Example use: ->orderBy('RANDOM()') for random result sets. Minimal config, MIT-licensed, and compatible with Doctrine ORM ≥2.2.0."
How can I help you explore Laravel packages today?