pieceofthepie,
@pieceofthepie@n8e.dev avatar

Oh this is fun. I can't upgrade to 11 as it needs PHP-Parser 5+.

Which I can't use as needs 4+.

Not to mention this project itself needs PHP-Parser so that upgrade in of itself means work on my part.

Is this where I start using a PHAR?

heiglandreas,
@heiglandreas@phpc.social avatar

@pieceofthepie Yes! (or separate composer.json files per tool)

pieceofthepie,
@pieceofthepie@n8e.dev avatar

@heiglandreas It'd be lovely if development dependencies got their own namespace.

At least that would mean not having to upgrade my codebase to support a newer test tool.

heiglandreas,
@heiglandreas@phpc.social avatar

@pieceofthepie I'd rather use a separate composer.json. Those aren't dependencies of your application. Just tools...

Separate Namespace doesn't work (apart from in scoped phars) as those tools also use dependencies that your project might use. How should that lib know whether it's used in a tool or a project?

pieceofthepie,
@pieceofthepie@n8e.dev avatar

@heiglandreas "Those aren't dependencies of your application. Just tools..."

Fair, but also, if I remove development dependencies from the my projects if they're just tools then those projects no longer have development dependencies.

Which I guess leads me to "what are development dependencies for if not things needed for development?"

heiglandreas,
@heiglandreas@phpc.social avatar

@pieceofthepie Exactly. Only for development. Your code also earns money without them.

But by adding them to the dev-dependencies you are tying the code that earns money to the tools you only need for development.

By using separate composer.jsons (or PHARs) you can use the tools without tying your code to them and their dependencies.

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