Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Idea - Require-style script #3312

Closed
alexandresalome opened this issue Sep 29, 2014 · 10 comments
Closed

Feature Idea - Require-style script #3312

alexandresalome opened this issue Sep 29, 2014 · 10 comments

Comments

@alexandresalome
Copy link

@alexandresalome alexandresalome commented Sep 29, 2014

I often create small scripts to show a sample, to POC or to automate some boring things. For example, by now, I need to create quickly a script that deals with Symfony Finder. I have to:

  • Create a project directory (oh wait, it was just a script)
  • Create a composer.json
  • Run composer install
  • Create my script and vendor

What if... I just create a script:

$composer->require('symfony/finder', function () {
     $finder = new Symfony\Component\Finder\Finder();
     # ...
});

And then run it using composer:

composer run-script test.php

What's your advice on such feature?

@stof
Copy link
Contributor

@stof stof commented Sep 29, 2014

IMO, this does not belong to the composer core.

However, it can probably be built on top of composer

@fabpot
Copy link
Contributor

@fabpot fabpot commented Oct 1, 2014

like it.

@mykiwi
Copy link

@mykiwi mykiwi commented Oct 1, 2014

Me too 👍.

@jeremyFreeAgent
Copy link
Contributor

@jeremyFreeAgent jeremyFreeAgent commented Oct 3, 2014

👍

2 similar comments
@csarrazi
Copy link

@csarrazi csarrazi commented Oct 6, 2014

👍

@avant1
Copy link

@avant1 avant1 commented Oct 10, 2014

👍

@lyrixx
Copy link
Contributor

@lyrixx lyrixx commented Oct 17, 2014

Before someone start working on it:

During Last SensioLabs hackday, @alexandresalome and others SL dev started to work on an external application. And we are going to release it soon.

So IMHO, we can close this issue.

@Seldaek
Copy link
Member

@Seldaek Seldaek commented Oct 17, 2014

Cool, looking forward to see this, it's like RequireJS for php of sorts. Good idea but indeed it does not need to be in composer itself.

@Seldaek Seldaek closed this Oct 17, 2014
@jderusse jderusse mentioned this issue Oct 26, 2014
2 of 4 tasks complete
@staabm
Copy link
Contributor

@staabm staabm commented Dec 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
11 participants
You can’t perform that action at this time.