Porter is a command line tool that makes it easy to run background services with only a few configuration lines. You will no longer have to manually start or manage background services in multiple tabs but instead manage them all in one convenient place.
Porter uses YAML configuration files to define services you need to run in the background for your development environment, and manages them for you via Supervisord and Chokidar.
Here's an example from the project's readme, which makes it convenient to share a
porter.yml file with your team with version control:
services:- name: Queuecommand: php artisan horizonrestart:watch:- app/Jobs- app/Mail/WelcomeEmail.php- name: Vitecommand: npm run dev- name: Octanecommand: php artisan octane:start --port=8000 --no-interaction- name: Stripecommand: stripe listen --forward-to localhost:8000/webhooks/striperestart:minutes: 5
To get started, you can initialize a
porter.yml file in your project using the
porter init command. From there, you can stop, start, add, restart, tail processes, and get process statuses with porter:
# Tail one or more background servicesporter tail# Get the status of all configured servicesporter status# Start, stop, and restart all servicesporter startporter stopporter restart
You can learn more about this package, get full installation instructions, and view the source code on GitHub.
Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.