Add repositories (packages.json) management using S3#5
Add repositories (packages.json) management using S3#5naderman merged 6 commits intonaderman:masterfrom
Conversation
|
composer's PR has been merged, if you're ok, you can merge this one |
|
👍 |
|
ping @naderman Please, we really need this feature :) Thanks |
|
So since the composer PR was reverted this won't work. Are you working on a new composer PR? |
|
It was remerged by Seldaek just after with his own fix on VcsRepository. |
|
Oh I saw your fix being closed and didn't have a chance to ask him yet :D |
|
Alright this generally looks good then, but I'd prefer if you could merge the getContents and download methods now since the code is mostly duplicated. Could you do that? Cheers! |
|
no problem |
|
Is it what you expected @naderman ? |
|
Yes, but there is a problem now. It still has to use the guzzle mechanism with fopen for writing because that streams the content. But the way you wrote it with file_put_contents now it loads the entire file into RAM which can be an issue with big downloads. |
|
You're right, must be much better now |
|
Ok cool, this looks good. Thanks for the patience and good work :) |
Add repositories (packages.json) management using S3
|
Also tagged a new version 0.2.4 |
|
Thanks! |
|
Excellent :) Thanks to you both
|
Hi,
This sample of code implements possibility of fetch repositories packages.json using
s3://scheme.Need to wait composer/composer#2434 to be merged.
Thanks,
Jérémy