#146·psysh

Load dynamically a composer dependency

Author: TaluuCreated Feb 2, 2015Updated Jun 16, 2018
Labelsenhancement

Hi,

I was wondering if psysh could load on demand (and only for the current session) a composer dependency. For example (my last and freshest use case), I need to play around with Symfony's PropertyAccess component to make some tests.

Rather than setting up a blank project with this requirement (and go back to good old php -r or a test script), it would be a killer feature to have a command like import package/name, and be able to play around with whatever was imported, limited to the current session : once the session is killed, the dependency would also be killed (maybe work on a /tmp directory ?)

I know this is huge though...