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
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: Dependency Management: Composer

Post by MichaelC »

imkingdavid wrote: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.
Whats wrong with php ../composer.phar install?
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

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

Re: Dependency Management: Composer

Post by imkingdavid »

Unknown Bliss wrote:
imkingdavid wrote: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.
Whats wrong with php ../composer.phar install?
Nothing, as long as it knows where to properly put the vendor directory (I haven't tried it outside of the phpBB directory). And if it's going to be up a directory, we need to change our instructions on here as well.
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
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: Dependency Management: Composer

Post by MichaelC »

It should place vendor directory in `pwd` which is the directory from which the script is run from, not from the location of the composer.phar.

https://github.com/phpbb/phpbb3#installing-dependencies - The instructions have already been changed in the readme and I've just changed the ones in the first post. :)
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

sajaki
Registered User
Posts: 86
Joined: Mon Jun 21, 2010 8:28 pm

Re: Dependency Management: Composer

Post by sajaki »

i tried setting up composer like you explained, and it seems to work, although it complained about not being up to date :)

Code: Select all

Silver:phpbb Nix$ php ../composer.phar install
This dev build of composer is outdated, please run "../composer.phar self-update" to get the latest version.
Installing dependencies from lock file
  - Installing symfony/event-dispatcher (v2.1.0-BETA3)
    Downloading: 100%         

symfony/event-dispatcher suggests installing symfony/dependency-injection (v2.1.0-BETA3)
symfony/event-dispatcher suggests installing symfony/http-kernel (v2.1.0-BETA3)
Generating autoload files
Silver:phpbb Nix$ ../composer.phar self-update
Updating to version 99c33a5.
    Downloading: 100%         
Silver:phpbb Nix$ 
Silver:phpbb Nix$ php ../composer.phar install
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating autoload files
Silver:phpbb Nix$ 

User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: Dependency Management: Composer

Post by MichaelC »

Its fine, don't worry about it when it gives the message saying composer.phar is out of date.
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: Dependency Management: Composer

Post by Meis2M »

Hi
i have a fetal error here:
http://www.php-bb.ir/3.1.dev/phpBB/

Code: Select all

Fatal error: You have not set up composer dependencies. See http://getcomposer.org/. in /home/zohallco/public_html/php-bb.ir/3.1.dev/phpBB/includes/startup.php on line 176

User avatar
callumacrae
Former Team Member
Posts: 1046
Joined: Tue Apr 27, 2010 9:37 am
Location: England
Contact:

Re: Dependency Management: Composer

Post by callumacrae »

Meis2M wrote:Hi
i have a fetal error here:
http://www.php-bb.ir/3.1.dev/phpBB/

Code: Select all

Fatal error: You have not set up composer dependencies. See http://getcomposer.org/. in /home/zohallco/public_html/php-bb.ir/3.1.dev/phpBB/includes/startup.php on line 176
Did you trying seeing http://getcomposer.org/? :-S
Made by developers, for developers!
My blog

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: Dependency Management: Composer

Post by Meis2M »

yes i saw it before but i dont know how active this in my server.
my server is linux and sharing.

User avatar
callumacrae
Former Team Member
Posts: 1046
Joined: Tue Apr 27, 2010 9:37 am
Location: England
Contact:

Re: Dependency Management: Composer

Post by callumacrae »

Meis2M wrote:yes i saw it before but i dont know how active this in my server.
my server is linux and sharing.
Do you have SSH access to the server?
Made by developers, for developers!
My blog


Post Reply