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
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: Dependency Management: Composer

Post by EXreaction » Thu Jan 31, 2013 1:40 am

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 » Thu Jan 31, 2013 2:47 am

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 » Thu Jan 31, 2013 7:47 pm

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 » Fri Apr 05, 2013 10:13 pm

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 » Fri Apr 05, 2013 10:37 pm

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 » Sat Apr 06, 2013 2:52 am

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 » Sat Apr 06, 2013 4:53 am

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 » Sat Apr 06, 2013 5:44 pm

This is the information
php.jpg
php.jpg (7.61 KiB) Viewed 11411 times
phar.jpg
phar.jpg (53.65 KiB) Viewed 11411 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 » Sun Apr 07, 2013 12:36 am

5.3.23 5.3.3

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

User avatar
Arty
Registered User
Posts: 970
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: Dependency Management: Composer

Post by Arty » Sun Apr 07, 2013 9:49 am

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"
Formerly known as CyberAlien.

Free phpBB styles | Premium responsive XenForo styles

Post Reply