Integration Prompts for SaloonPHP

Share
Integration Prompts for SaloonPHP
Photo by Ben Emrick / Unsplash

I've been using SaloonPHP for a while and one of the things I've always wanted to improve is when it comes to selecting the integration you want to add a connector, request, plugin etc to.

This was a manual typing job and the amount of times I'd accidentally misspell an existing integration was too many to count. This meant that I'd end up with another directory for an integration I didn't meant to create.

Enter, Laravel Prompts...

This week I hacked on an idea using Laravel Prompts which scans your existing integrations and allows you to select from them or create a new integration, like before:

This is the exact thing Laravel Prompts should be used for! It was ~100 lines of code to get this working and IMO massively improves developer experience when using Saloon. It means I'm way less likely to misspell an integration name again!