Dependency Management: Composer

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.2/Rhea followed by 3.3.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1732
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Dependency Management: Composer

Post by DavidIQ » Fri Jul 20, 2012 5:01 pm

brandsrus wrote:It is too difficult to install it in with Xampp on the Windows machine.

My directory is located on L:\xampp\htdocs\phpBB3.1 and with commandline in Windows is not possible to install symphony.

I don't understand how it works, so I can't test the new development version local.
You need to follow the link that has been already provided in the post prior to yours.
-=ET=- wrote:
Vinny wrote:Try this.
Thanks! It works ;)
Image

brandsrus
Registered User
Posts: 4
Joined: Sun Feb 25, 2007 6:48 pm

Re: Dependency Management: Composer

Post by brandsrus » Fri Jul 20, 2012 5:21 pm

Code: Select all

DISPLAY: 'phpbbjob' TYPE: DOWNLOAD STATE: ERROR
PRIORITY: NORMAL FILES: 0 / 1 BYTES: 0 / UNKNOWN
Unable to complete transfer.
ERROR FILE:    http://getcomposer.org/installer -> L:\map\composer.installer
ERROR CODE:    0x80200011
ERROR CONTEXT: 0x00000005

C:\Windows\system32>
It doesnt works on this time, on nothing of a folder. Is it possible to get a package installed with sympony. (This is not usefull for newbies or other interesting users if the install procedure is difficult)

User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: Dependency Management: Composer

Post by EXreaction » Fri Jul 20, 2012 7:12 pm

If you have a git client installed with a command line utility, that might be the easiest way to do it.

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 135
Joined: Sun Dec 18, 2005 5:44 pm
Location: Texas
Contact:

Re: Dependency Management: Composer

Post by Noxwizard » Fri Jul 20, 2012 9:14 pm

The post I wrote also said you can just download it off of their site instead of trying to be fancy on the command line. Anyway, since composer.phar is actually in the phpBB repo now, the first steps are no longer needed. Just copy composer.phar from the root to /phpBB/ and run php composer.phar install. The folder containing php.exe will need to be in your environment PATH for that to work.

User avatar
imkingdavid
Registered User
Posts: 1050
Joined: Thu Jul 30, 2009 12:06 pm

Re: Dependency Management: Composer

Post by imkingdavid » Wed Aug 15, 2012 1:12 pm

It is definitely possible, as I just did this morning. I had to use:
php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
(with CMD in the directory of the phpBB installation) instead of the curl command because I got some odd syntax error. But anyway, after that you just run
php composer.phar install
And it does it for you.
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

User avatar
bantu
3.0 Release Manager
3.0 Release Manager
Posts: 557
Joined: Thu Sep 07, 2006 11:22 am
Location: Karlsruhe, Germany
Contact:

Re: Dependency Management: Composer

Post by bantu » Wed Aug 15, 2012 3:21 pm

The composer.phar is not in the repository, so you do not have to download it.

User avatar
brunoais
Registered User
Posts: 958
Joined: Fri Dec 18, 2009 3:55 pm

Re: Dependency Management: Composer

Post by brunoais » Thu Aug 16, 2012 1:43 pm

bantu wrote:The composer.phar is not in the repository, so you do not have to download it.
That does not seem to make sense....

User avatar
imkingdavid
Registered User
Posts: 1050
Joined: Thu Jul 30, 2009 12:06 pm

Re: Dependency Management: Composer

Post by imkingdavid » Thu Aug 16, 2012 2:07 pm

composer.phar is currently located in the top-most folder of the repository. I'm not sure if that is intentional because atm you either have to move it into the phpBB directory or else download it yourself there.
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

User avatar
naderman
Product Manager
Product Manager
Posts: 1727
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany
Contact:

Re: Dependency Management: Composer

Post by naderman » Thu Aug 16, 2012 3:33 pm

brunoais wrote:
bantu wrote:The composer.phar is not in the repository, so you do not have to download it.
That does not seem to make sense....
I think he meant "now" rather than "not".

User avatar
bantu
3.0 Release Manager
3.0 Release Manager
Posts: 557
Joined: Thu Sep 07, 2006 11:22 am
Location: Karlsruhe, Germany
Contact:

Re: Dependency Management: Composer

Post by bantu » Thu Aug 16, 2012 4:34 pm

naderman wrote:
brunoais wrote:
bantu wrote:The composer.phar is not in the repository, so you do not have to download it.
That does not seem to make sense....
I think he meant "now" rather than "not".
Indeed

Post Reply