Dependency Management: Composer

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.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
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: Dependency Management: Composer

Post by EXreaction »

No, they won't be phased out.

Composer is used to handle some tasks required when building the release package. These tasks will be handled before the zip package is released to the public so they do not need to worry about composer.

Parts of Symfony are used for various features that are included in 3.1.

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

Re: Dependency Management: Composer

Post by imkingdavid »

To clarify about the vendor directory, it was decided not to add it to the repository because it is created during the composer install process.
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.

shoes22
Posts: 33
Joined: Tue Jul 11, 2006 9:20 pm

Re: Dependency Management: Composer

Post by shoes22 »

Gotcha, thanks!

User avatar
nextgen
Registered User
Posts: 128
Joined: Sat Jul 24, 2010 4:59 am
Location: Guatemala
Contact:

Re: Dependency Management: Composer

Post by nextgen »

Hi guys

I try install components but get me this message.

Could not open input file: ../composer.phar

I try to install version 3.1 in a subdomain.
install.jpg
(74.44 KiB) Downloaded 3830 times
*Imagine a signature super spectacular.*

User avatar
oddfish
Registered User
Posts: 110
Joined: Tue Mar 27, 2007 5:53 am
Location: on my way home
Contact:

Re: Dependency Management: Composer

Post by oddfish »

You have composer.phar in phpBB's parent directory?

If not, copy it from the root of the download file into the phpBB's parent folder.

You can have composer.phar in the phpBB3 folder and install by php ./composer.phar install --dev (notice the ./ path instead of ../)

EDIT For clarity:
  1. You download https://github.com/phpbb/phpbb3/tarball/develop or https://github.com/phpbb/phpbb3/archive/develop.zip.
  2. Extract and copy the phpBB folder to your localhost root.
  3. Copy composer.phar from the extracted download root to localhost root.
  4. From localhost root in terminal / command prompt ..

    Code: Select all

    cd phpBB
    php ../composer.phar install --dev

User avatar
nextgen
Registered User
Posts: 128
Joined: Sat Jul 24, 2010 4:59 am
Location: Guatemala
Contact:

Re: Dependency Management: Composer

Post by nextgen »

Thanks oddfish

Now get me this message.

Code: Select all

Fatal error: Class 'Phar' not found in /home/starrk/public_html/area51/composer.phar on line 13
Already check that the files are properly uploaded to their respective folders. :|
*Imagine a signature super spectacular.*

User avatar
oddfish
Registered User
Posts: 110
Joined: Tue Mar 27, 2007 5:53 am
Location: on my way home
Contact:

Re: Dependency Management: Composer

Post by oddfish »

Are you using >=php 5.3.3 and if so, does Phar appear in your phpinfo() ?

User avatar
nextgen
Registered User
Posts: 128
Joined: Sat Jul 24, 2010 4:59 am
Location: Guatemala
Contact:

Re: Dependency Management: Composer

Post by nextgen »

This is the information
php.jpg
php.jpg (7.61 KiB) Viewed 45056 times
phar.jpg
phar.jpg (53.65 KiB) Viewed 45056 times
*Imagine a signature super spectacular.*

User avatar
oddfish
Registered User
Posts: 110
Joined: Tue Mar 27, 2007 5:53 am
Location: on my way home
Contact:

Re: Dependency Management: Composer

Post by oddfish »

5.3.23 5.3.3

Update your php version to >=5.3.3 and you will be good to go.

User avatar
Arty
Former Team Member
Posts: 985
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: Dependency Management: Composer

Post by Arty »

oddfish wrote:5.3.23 5.3.3

Update your php version to >=5.3.3 and you will be good to go.
5.3.23 is actually newer than 5.3.3. ".23" does not mean ".2.3"

Post Reply