itsjoshbruce, (edited )
@itsjoshbruce@phpc.social avatar

Is Symfony Console the way to go for creating custom CLI tools using PHP?

I think someone pulled something together from Laravel components.

I'd like to find something excessively lightweight - like CLI is all it does with few or no dependencies.

Curious about what folks are using.

I'll probably start with Symfony as I've built what I'm planning once before.

#PHP #Laravel #Symfony #CLI

willpower232,
@willpower232@phpc.social avatar

@itsjoshbruce it depends how you want to deploy it, I am making phars with plain php and laravel/prompts so I can deploy a small binary-like file internally

pboivin,

@itsjoshbruce Minicli is a light option I've been using lately. It has no dependency and provides just enough convenience over doing a plain PHP script.
https://github.com/minicli/minicli

ramsey,
@ramsey@phpc.social avatar

@itsjoshbruce You don’t have to use all of Symfony. You can use symfony/console to keep it lightweight.

itsjoshbruce,
@itsjoshbruce@phpc.social avatar

@ramsey: Fair. And I should have been more specific. Edited OP.

symfony/console has 6 different dependencies beyond the core (3 polyfills).

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • DreamBathrooms
  • magazineikmin
  • InstantRegret
  • ethstaker
  • cisconetworking
  • rosin
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • Durango
  • thenastyranch
  • ngwrru68w68
  • tester
  • normalnudes
  • modclub
  • Leos
  • love
  • osvaldo12
  • tacticalgear
  • mdbf
  • anitta
  • provamag3
  • cubers
  • GTA5RPClips
  • megavids
  • JUstTest
  • All magazines